summaryrefslogtreecommitdiff
path: root/templates/hooks--pre-commit
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-11-23 07:25:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-23 07:25:42 (GMT)
commitf81117b84d2c99a29acf06c6522aad54defbc760 (patch)
tree8aee73b01de4b652658de0f473ee47d2a0d942e8 /templates/hooks--pre-commit
parent31e7bded608416e3116f9c691a4d4314f10640b6 (diff)
parent7a3db75beee75c4e1b5fdae7504bc2ba05c58b14 (diff)
downloadgit-f81117b84d2c99a29acf06c6522aad54defbc760.zip
git-f81117b84d2c99a29acf06c6522aad54defbc760.tar.gz
git-f81117b84d2c99a29acf06c6522aad54defbc760.tar.bz2
Merge branch 'maint'
* maint: Fix sample pre-commit hook
Diffstat (limited to 'templates/hooks--pre-commit')
-rw-r--r--templates/hooks--pre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/hooks--pre-commit b/templates/hooks--pre-commit
index a19279b..7092bae 100644
--- a/templates/hooks--pre-commit
+++ b/templates/hooks--pre-commit
@@ -13,7 +13,7 @@
if git-rev-parse --verify HEAD 2>/dev/null
then
- git-diff-index -p -M --cached HEAD
+ git-diff-index -p -M --cached HEAD --
else
# NEEDSWORK: we should produce a diff with an empty tree here
# if we want to do the same verification for the initial import.