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:
parent
f9f7cfc080
commit
eca4e82cac
1 changed files with 1 additions and 1 deletions
|
@ -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$|)
|
||||
|
|
Loading…
Reference in a new issue