summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-02-26 15:25:52 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2006-02-26 15:25:52 -0800
commitac5f7c62c2d59cdad0813fcd8c999db96a4fc9e4 (patch)
treee5a14450bb0af3a540f1f9beeb445f2f7c250f19
parentTeach the "git" command to handle some commands internally (diff)
parentsample hooks template. (diff)
downloadtgif-ac5f7c62c2d59cdad0813fcd8c999db96a4fc9e4.tar.xz
Merge branch 'maint'
* maint: sample hooks template.
-rw-r--r--templates/hooks--applypatch-msg1
-rw-r--r--templates/hooks--pre-applypatch1
2 files changed, 2 insertions, 0 deletions
diff --git a/templates/hooks--applypatch-msg b/templates/hooks--applypatch-msg
index bda3c86be7..02de1ef84c 100644
--- a/templates/hooks--applypatch-msg
+++ b/templates/hooks--applypatch-msg
@@ -9,6 +9,7 @@
#
# To enable this hook, make this file executable.
+. git-sh-setup
test -x "$GIT_DIR/hooks/commit-msg" &&
exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
:
diff --git a/templates/hooks--pre-applypatch b/templates/hooks--pre-applypatch
index a54751600e..5f56ce8053 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+"$@"}
: