mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-07-30 23:23:08 +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;
|
my $max_len = 72;
|
||||||
foreach my $line (@line)
|
foreach my $line (@line)
|
||||||
{
|
{
|
||||||
|
last if $line =~ '.*-{24} >8 -{24}$';
|
||||||
my $len = length $line;
|
my $len = length $line;
|
||||||
$max_len < $len && $line =~ /^[^#]/
|
$max_len < $len && $line =~ /^[^#]/
|
||||||
and return "line length ($len) greater than than max: $max_len";
|
and return "line length ($len) greater than than max: $max_len";
|
||||||
|
Reference in New Issue
Block a user