From a204756a45bd357280c156d01858138712493dfa Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 26 Feb 2006 15:16:41 -0800 Subject: 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 --- templates/hooks--pre-applypatch | 1 + 1 file changed, 1 insertion(+) (limited to 'templates/hooks--pre-applypatch') 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+"$@"} : -- cgit v1.2.1