summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6d5129a)
raw | patch | inline | side by side (parent: 6d5129a)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 26 Feb 2006 23:16:41 +0000 (15:16 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 26 Feb 2006 23:16:41 +0000 (15:16 -0800) |
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>
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>
templates/hooks--applypatch-msg | patch | blob | history | |
templates/hooks--pre-applypatch | patch | blob | history |
index bda3c86be732b5fae98291f8fadd76b916fde5ed..02de1ef84c9b8c2c2659048269784ee8cfd1bbb5 100644 (file)
#
# 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+"$@"}
:
index a54751600ef85cce0480a2edfc43621104becd8c..5f56ce8053a40919cbf02010e29f185b6f9d8784 100644 (file)
#
# 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+"$@"}
: