Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint'
author
Junio C Hamano
<gitster@pobox.com>
Fri, 23 Nov 2007 07:25:42 +0000
(23:25 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 23 Nov 2007 07:25:42 +0000
(23:25 -0800)
* maint:
Fix sample pre-commit hook
templates/hooks--pre-commit
patch
|
blob
|
history
raw
(from parent 1:
31e7bde
)
diff --git
a/templates/hooks--pre-commit
b/templates/hooks--pre-commit
index a19279b3e41653b519b8c3b266bc7845f3648c4b..7092bae26342d273f28d52ac330c270a22067f65 100644
(file)
--- 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.