X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=templates%2Fhooks--pre-commit;h=8b057be30411e3f0074599778666c1254d82329e;hb=38762c47d6442dc0ce0f45533f9151877c485337;hp=723a9ef210bb84c217026c2cdf9d30661f64447b;hpb=2b93bfac0f5bcabbf60f174f4e7bfa9e318e64d5;p=git.git diff --git a/templates/hooks--pre-commit b/templates/hooks--pre-commit index 723a9ef21..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. @@ -68,4 +68,3 @@ perl -e ' } exit($found_bad); ' -