diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index f3ea7b093895..521ed202b9ac 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -48,7 +48,7 @@ sub check_whitespaces($) print STDERR "$filename:$lineno:$line\n"; } } - open( FILES, "git-diff-index -p -M --cached $h |" ) || die "Cannot run git diff-index."; + open( FILES, "git diff-index -p -M --cached $h |" ) || die "Cannot run git diff-index."; while () { if (m|^diff --git a/(.*) b/\1$|)