mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-07-29 12:21:15 +03:00
scripts: commit-msg: recognize Git cut_lines
This prevents spurious failures from happening when someone sets commit.verbose or passes -v to commit.
This commit is contained in:
committed by
Pádraig Brady
parent
7bb940cced
commit
8613d35be6
@ -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";
|
||||
|
Reference in New Issue
Block a user