X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=templates%2Fhooks--pre-commit;h=8b057be30411e3f0074599778666c1254d82329e;hb=38762c47d6442dc0ce0f45533f9151877c485337;hp=18b87309f65be23794b87260e08c547f5deeefce;hpb=f16eb1f6a3f9a1a09a61f0cd07e9c9ff9ee54530;p=git.git diff --git a/templates/hooks--pre-commit b/templates/hooks--pre-commit index 18b87309f..8b057be30 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.