diff options
Diffstat (limited to 'scripts/git-hooks/commit-msg')
-rwxr-xr-x | scripts/git-hooks/commit-msg | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/git-hooks/commit-msg b/scripts/git-hooks/commit-msg index 8b0655920..da094c95a 100755 --- a/scripts/git-hooks/commit-msg +++ b/scripts/git-hooks/commit-msg @@ -120,6 +120,7 @@ sub check_msg($$) my $max_len = 72; foreach my $line (@line) { + last if $line =~ '.*-{24} >8 -{24}$'; my $len = length $line; $max_len < $len && $line =~ /^[^#]/ and return "line length ($len) greater than than max: $max_len"; |