diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-05-04 07:36:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-04 07:36:22 -0700 |
commit | 4c60d9a1a0d0cd01727aff4334b00cf25935e634 (patch) | |
tree | 38c1fba4058501e8fe7e8e2760ec92a236896214 /githooks.html | |
parent | 8decc2321270ed62283cf47685f2a355b8de4c57 (diff) | |
download | git-htmldocs-4c60d9a1a0d0cd01727aff4334b00cf25935e634.tar.gz |
Autogenerated HTML docs for v2.13.0-rc2
Diffstat (limited to 'githooks.html')
-rw-r--r-- | githooks.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/githooks.html b/githooks.html index 934747401..1709b5467 100644 --- a/githooks.html +++ b/githooks.html @@ -760,8 +760,10 @@ the executable bit set are ignored.</p></div> changed via the <code>core.hooksPath</code> configuration variable (see
<a href="git-config.html">git-config(1)</a>).</p></div>
<div class="paragraph"><p>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.</p></div>
+$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 (<em>pre-receive</em>,
+<em>update</em>, <em>post-receive</em>, <em>post-update</em>, <em>push-to-checkout</em>) which are always
+executed in $GIT_DIR.</p></div>
<div class="paragraph"><p>Hooks can get their arguments via the environment, command-line
arguments, and stdin. See the documentation for each hook below for
details.</p></div>
@@ -1145,7 +1147,7 @@ processed by rebase.</p></div> <div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2017-04-23 23:17:27 PDT
+Last updated 2017-05-04 07:33:43 PDT
</div>
</div>
</body>
|