Skip to content

Commit fca5ece

Browse files
committed
Merge branch 'jt/doc-post-receive-hook-update' into maint-2.46
Doc update. * jt/doc-post-receive-hook-update: doc: clarify post-receive hook behavior
2 parents 8ad5632 + 8db8786 commit fca5ece

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Documentation/githooks.txt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,13 +415,13 @@ post-receive
415415

416416
This hook is invoked by linkgit:git-receive-pack[1] when it reacts to
417417
`git push` and updates reference(s) in its repository.
418-
It executes on the remote repository once after all the refs have
419-
been updated.
418+
The hook executes on the remote repository once after all the proposed
419+
ref updates are processed and if at least one ref is updated as the
420+
result.
420421

421-
This hook executes once for the receive operation. It takes no
422-
arguments, but gets the same information as the
423-
<<pre-receive,'pre-receive'>>
424-
hook does on its standard input.
422+
The hook takes no arguments. It receives one line on standard input for
423+
each ref that is successfully updated following the same format as the
424+
<<pre-receive,'pre-receive'>> hook.
425425

426426
This hook does not affect the outcome of `git receive-pack`, as it
427427
is called after the real work is done.
@@ -448,6 +448,9 @@ environment variables will not be set. If the client selects
448448
to use push options, but doesn't transmit any, the count variable
449449
will be set to zero, `GIT_PUSH_OPTION_COUNT=0`.
450450

451+
See the "post-receive" section in linkgit:git-receive-pack[1] for
452+
additional details.
453+
451454
[[post-update]]
452455
post-update
453456
~~~~~~~~~~~

0 commit comments

Comments
 (0)