diff options
Diffstat (limited to 'git-hooks/sanitize-commit')
-rwxr-xr-x | git-hooks/sanitize-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index ca6879e..825ccba 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -812,7 +812,7 @@ while (<DIFF>) { } next; } - if (/^new file mode (\d+)$/) { + if (/^new(?: file)? mode (\d+)$/) { my $text = $1; if ($text eq "160000" || $text eq "120000") { $is_special = 1; |