diff options
author | Taichi Haradaguchi <20001722@ymail.ne.jp> | 2023-06-10 18:20:50 +0900 |
---|---|---|
committer | Taichi Haradaguchi <20001722@ymail.ne.jp> | 2023-06-20 02:10:44 +0200 |
commit | eca4e82cac2c9fea6f9bd23fb0196ee7a3016223 (patch) | |
tree | 5f31cd4c687f4991af5e439020f0e7ef23d70c28 /.git-hooks | |
parent | f9f7cfc080c3adb751ceca96be4ca5440de4a2b6 (diff) |
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>
Diffstat (limited to '.git-hooks')
-rwxr-xr-x | .git-hooks/pre-commit | 2 |
1 files changed, 1 insertions, 1 deletions
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 (<FILES>) { if (m|^diff --git a/(.*) b/\1$|) |