summaryrefslogtreecommitdiffstats
path: root/git-hooks/sanitize-commit
diff options
context:
space:
mode:
Diffstat (limited to 'git-hooks/sanitize-commit')
-rwxr-xr-xgit-hooks/sanitize-commit2
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;