Skip to content

Commit 375a6a7

Browse files
committed
Fix console blocks in policy.asc
1 parent de14991 commit 375a6a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

book/08-customizing-git/sections/policy.asc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ error: failed to push some refs to 'git@gitserver:project.git'
239239
There are a couple of interesting things here.
240240
First, you see this where the hook starts running.
241241

242-
[source]
242+
[source,console]
243243
----
244244
Enforcing Policies...
245245
(refs/heads/master) (fb8c72) (c56860)
@@ -250,7 +250,7 @@ Anything your script echoes to `stdout` will be transferred to the client.
250250

251251
The next thing you'll notice is the error message.
252252

253-
[source]
253+
[source,console]
254254
----
255255
[POLICY] Your message is not formatted correctly
256256
error: hooks/update exited with error code 1
@@ -260,7 +260,7 @@ error: hook declined to update refs/heads/master
260260
The first line was printed out by you, the other two were Git telling you that the update script exited non-zero and that is what is declining your push.
261261
Lastly, you have this:
262262

263-
[source]
263+
[source,console]
264264
----
265265
To git@gitserver:project.git
266266
! [remote rejected] master -> master (hook declined)
@@ -272,7 +272,7 @@ You'll see a remote rejected message for each reference that your hook declined,
272272
Furthermore, if someone tries to edit a file they don't have access to and push a commit containing it, they will see something similar.
273273
For instance, if a documentation author tries to push a commit modifying something in the `lib` directory, they see
274274

275-
[source]
275+
[source,console]
276276
----
277277
[POLICY] You do not have access to push to lib/test.rb
278278
----

0 commit comments

Comments
 (0)