summaryrefslogtreecommitdiff
path: root/templates/hooks--pre-commit
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2007-11-22 23:25:42 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-11-22 23:25:42 -0800
commitf81117b84d2c99a29acf06c6522aad54defbc760 (patch)
tree8aee73b01de4b652658de0f473ee47d2a0d942e8 /templates/hooks--pre-commit
parentAddendum to "MaintNotes" (diff)
parentFix sample pre-commit hook (diff)
downloadtgif-f81117b84d2c99a29acf06c6522aad54defbc760.tar.xz
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 a19279b3e4..7092bae263 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.