1
0
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:
Arsen Arsenović
2022-11-20 12:25:12 +01:00
committed by Pádraig Brady
parent 7bb940cced
commit 8613d35be6

View File

@ -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";