summaryrefslogtreecommitdiff
path: root/templates/hooks--pre-applypatch
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-26 23:16:41 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-26 23:16:41 (GMT)
commita204756a45bd357280c156d01858138712493dfa (patch)
treeb24bc9d3ace57987fd38dcea596e0a56025f540b /templates/hooks--pre-applypatch
parent6d5129ac098e8b9c270efd5fa2695163122a0a46 (diff)
downloadgit-a204756a45bd357280c156d01858138712493dfa.zip
git-a204756a45bd357280c156d01858138712493dfa.tar.gz
git-a204756a45bd357280c156d01858138712493dfa.tar.bz2
sample hooks template.
These two sample hooks try to detect and use the corresponding commit hook from the same repository. However, they forgot to set up GIT_DIR for their own use, so was not in effect. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'templates/hooks--pre-applypatch')
-rw-r--r--templates/hooks--pre-applypatch1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/hooks--pre-applypatch b/templates/hooks--pre-applypatch
index a547516..5f56ce8 100644
--- a/templates/hooks--pre-applypatch
+++ b/templates/hooks--pre-applypatch
@@ -8,6 +8,7 @@
#
# To enable this hook, make this file executable.
+. git-sh-setup
test -x "$GIT_DIR/hooks/pre-commit" &&
exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
: