summaryrefslogtreecommitdiffstats
path: root/githooks.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-05-04 07:36:22 -0700
committerJunio C Hamano <gitster@pobox.com>2017-05-04 07:36:22 -0700
commit4c60d9a1a0d0cd01727aff4334b00cf25935e634 (patch)
tree38c1fba4058501e8fe7e8e2760ec92a236896214 /githooks.txt
parent8decc2321270ed62283cf47685f2a355b8de4c57 (diff)
downloadgit-htmldocs-4c60d9a1a0d0cd01727aff4334b00cf25935e634.tar.gz
Autogenerated HTML docs for v2.13.0-rc2
Diffstat (limited to 'githooks.txt')
-rw-r--r--githooks.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/githooks.txt b/githooks.txt
index 32343ae29..706091a56 100644
--- a/githooks.txt
+++ b/githooks.txt
@@ -22,8 +22,10 @@ changed via the `core.hooksPath` configuration variable (see
linkgit:git-config[1]).
Before Git invokes a hook, it changes its working directory to either
-the root of the working tree in a non-bare repository, or to the
-$GIT_DIR in a bare repository.
+$GIT_DIR in a bare repository or the root of the working tree in a non-bare
+repository. An exception are hooks triggered during a push ('pre-receive',
+'update', 'post-receive', 'post-update', 'push-to-checkout') which are always
+executed in $GIT_DIR.
Hooks can get their arguments via the environment, command-line
arguments, and stdin. See the documentation for each hook below for