Skip to content

Commit e49ac11

Browse files
committed
Merge branch 'jc/receive-pack-hook-doc'
Doc update. * jc/receive-pack-hook-doc: hooks doc: clarify when receive-pack invokes its hooks
2 parents b3f04e5 + 7db2cbf commit e49ac11

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Documentation/githooks.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ to the user by writing to standard error.
223223
pre-receive
224224
~~~~~~~~~~~
225225

226-
This hook is invoked by 'git-receive-pack' on the remote repository,
227-
which happens when a 'git push' is done on a local repository.
226+
This hook is invoked by 'git-receive-pack' when it reacts to
227+
'git push' and updates reference(s) in its repository.
228228
Just before starting to update refs on the remote repository, the
229229
pre-receive hook is invoked. Its exit status determines the success
230230
or failure of the update.
@@ -264,8 +264,8 @@ linkgit:git-receive-pack[1] for some caveats.
264264
update
265265
~~~~~~
266266

267-
This hook is invoked by 'git-receive-pack' on the remote repository,
268-
which happens when a 'git push' is done on a local repository.
267+
This hook is invoked by 'git-receive-pack' when it reacts to
268+
'git push' and updates reference(s) in its repository.
269269
Just before updating the ref on the remote repository, the update hook
270270
is invoked. Its exit status determines the success or failure of
271271
the ref update.
@@ -309,8 +309,8 @@ unannotated tags to be pushed.
309309
post-receive
310310
~~~~~~~~~~~~
311311

312-
This hook is invoked by 'git-receive-pack' on the remote repository,
313-
which happens when a 'git push' is done on a local repository.
312+
This hook is invoked by 'git-receive-pack' when it reacts to
313+
'git push' and updates reference(s) in its repository.
314314
It executes on the remote repository once after all the refs have
315315
been updated.
316316

@@ -348,8 +348,8 @@ will be set to zero, `GIT_PUSH_OPTION_COUNT=0`.
348348
post-update
349349
~~~~~~~~~~~
350350

351-
This hook is invoked by 'git-receive-pack' on the remote repository,
352-
which happens when a 'git push' is done on a local repository.
351+
This hook is invoked by 'git-receive-pack' when it reacts to
352+
'git push' and updates reference(s) in its repository.
353353
It executes on the remote repository once after all the refs have
354354
been updated.
355355

@@ -379,8 +379,8 @@ for the user.
379379
push-to-checkout
380380
~~~~~~~~~~~~~~~~
381381

382-
This hook is invoked by 'git-receive-pack' on the remote repository,
383-
which happens when a 'git push' is done on a local repository, when
382+
This hook is invoked by 'git-receive-pack' when it reacts to
383+
'git push' and updates reference(s) in its repository, and when
384384
the push tries to update the branch that is currently checked out
385385
and the `receive.denyCurrentBranch` configuration variable is set to
386386
`updateInstead`. Such a push by default is refused if the working

0 commit comments

Comments
 (0)