]> asedeno.scripts.mit.edu Git - git.git/blobdiff - templates/hooks--pre-commit
git.el: Make sure we never insert the same file twice.
[git.git] / templates / hooks--pre-commit
index a19279b3e41653b519b8c3b266bc7845f3648c4b..7092bae26342d273f28d52ac330c270a22067f65 100644 (file)
@@ -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.