Skip to content

Commit ac5f7c6

Browse files
author
Junio C Hamano
committed
Merge branch 'maint'
* maint: sample hooks template.
2 parents 231af83 + a204756 commit ac5f7c6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

templates/hooks--applypatch-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#
1010
# To enable this hook, make this file executable.
1111

12+
. git-sh-setup
1213
test -x "$GIT_DIR/hooks/commit-msg" &&
1314
exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
1415
:

templates/hooks--pre-applypatch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#
99
# To enable this hook, make this file executable.
1010

11+
. git-sh-setup
1112
test -x "$GIT_DIR/hooks/pre-commit" &&
1213
exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
1314
:

0 commit comments

Comments
 (0)