1
0
mirror of https://github.com/git/git.git synced 2024-09-21 08:32:02 +02:00

Merge branch 'jc/receive-pack-hook-doc'

Doc update.

* jc/receive-pack-hook-doc:
  hooks doc: clarify when receive-pack invokes its hooks
This commit is contained in:
Junio C Hamano 2017-12-13 13:28:55 -08:00
commit e49ac11089

View File

@ -223,8 +223,8 @@ to the user by writing to standard error.
pre-receive pre-receive
~~~~~~~~~~~ ~~~~~~~~~~~
This hook is invoked by 'git-receive-pack' on the remote repository, This hook is invoked by 'git-receive-pack' when it reacts to
which happens when a 'git push' is done on a local repository. 'git push' and updates reference(s) in its repository.
Just before starting to update refs on the remote repository, the Just before starting to update refs on the remote repository, the
pre-receive hook is invoked. Its exit status determines the success pre-receive hook is invoked. Its exit status determines the success
or failure of the update. or failure of the update.
@ -264,8 +264,8 @@ linkgit:git-receive-pack[1] for some caveats.
update update
~~~~~~ ~~~~~~
This hook is invoked by 'git-receive-pack' on the remote repository, This hook is invoked by 'git-receive-pack' when it reacts to
which happens when a 'git push' is done on a local repository. 'git push' and updates reference(s) in its repository.
Just before updating the ref on the remote repository, the update hook Just before updating the ref on the remote repository, the update hook
is invoked. Its exit status determines the success or failure of is invoked. Its exit status determines the success or failure of
the ref update. the ref update.
@ -309,8 +309,8 @@ unannotated tags to be pushed.
post-receive post-receive
~~~~~~~~~~~~ ~~~~~~~~~~~~
This hook is invoked by 'git-receive-pack' on the remote repository, This hook is invoked by 'git-receive-pack' when it reacts to
which happens when a 'git push' is done on a local repository. 'git push' and updates reference(s) in its repository.
It executes on the remote repository once after all the refs have It executes on the remote repository once after all the refs have
been updated. been updated.
@ -348,8 +348,8 @@ will be set to zero, `GIT_PUSH_OPTION_COUNT=0`.
post-update post-update
~~~~~~~~~~~ ~~~~~~~~~~~
This hook is invoked by 'git-receive-pack' on the remote repository, This hook is invoked by 'git-receive-pack' when it reacts to
which happens when a 'git push' is done on a local repository. 'git push' and updates reference(s) in its repository.
It executes on the remote repository once after all the refs have It executes on the remote repository once after all the refs have
been updated. been updated.
@ -379,8 +379,8 @@ for the user.
push-to-checkout push-to-checkout
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
This hook is invoked by 'git-receive-pack' on the remote repository, This hook is invoked by 'git-receive-pack' when it reacts to
which happens when a 'git push' is done on a local repository, when 'git push' and updates reference(s) in its repository, and when
the push tries to update the branch that is currently checked out the push tries to update the branch that is currently checked out
and the `receive.denyCurrentBranch` configuration variable is set to and the `receive.denyCurrentBranch` configuration variable is set to
`updateInstead`. Such a push by default is refused if the working `updateInstead`. Such a push by default is refused if the working