mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-18 05:12:15 +02: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