You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/08-customizing-git/sections/policy.asc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,7 +239,7 @@ error: failed to push some refs to 'git@gitserver:project.git'
239
239
There are a couple of interesting things here.
240
240
First, you see this where the hook starts running.
241
241
242
-
[source]
242
+
[source,console]
243
243
----
244
244
Enforcing Policies...
245
245
(refs/heads/master) (fb8c72) (c56860)
@@ -250,7 +250,7 @@ Anything your script echoes to `stdout` will be transferred to the client.
250
250
251
251
The next thing you'll notice is the error message.
252
252
253
-
[source]
253
+
[source,console]
254
254
----
255
255
[POLICY] Your message is not formatted correctly
256
256
error: hooks/update exited with error code 1
@@ -260,7 +260,7 @@ error: hook declined to update refs/heads/master
260
260
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.
0 commit comments