Fix typo in .git-hooks/pre-commit

...to avoid a error "Cannot run git diff-index. at .git/hooks/pre-commit line 51." that occures on Windows.

Change-Id: I868e87940f9fcef950970b59e8cbe747f80c7198
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152830
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
This commit is contained in:
Taichi Haradaguchi 2023-06-10 18:20:50 +09:00
parent f9f7cfc080
commit eca4e82cac

View file

@ -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 (<FILES>)
{
if (m|^diff --git a/(.*) b/\1$|)