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>
This commit is contained in:
parent
6d5129ac09
commit
a204756a45
@ -9,6 +9,7 @@
|
|||||||
#
|
#
|
||||||
# To enable this hook, make this file executable.
|
# To enable this hook, make this file executable.
|
||||||
|
|
||||||
|
. git-sh-setup
|
||||||
test -x "$GIT_DIR/hooks/commit-msg" &&
|
test -x "$GIT_DIR/hooks/commit-msg" &&
|
||||||
exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
|
exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
|
||||||
:
|
:
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
#
|
#
|
||||||
# To enable this hook, make this file executable.
|
# To enable this hook, make this file executable.
|
||||||
|
|
||||||
|
. git-sh-setup
|
||||||
test -x "$GIT_DIR/hooks/pre-commit" &&
|
test -x "$GIT_DIR/hooks/pre-commit" &&
|
||||||
exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
|
exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
|
||||||
:
|
:
|
||||||
|
Loading…
Reference in New Issue
Block a user