From eca4e82cac2c9fea6f9bd23fb0196ee7a3016223 Mon Sep 17 00:00:00 2001 From: Taichi Haradaguchi <20001722@ymail.ne.jp> Date: Sat, 10 Jun 2023 18:20:50 +0900 Subject: [PATCH] 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> --- .git-hooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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$|)