mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-01 05:53:32 +08:00
scripts: commit-msg: tweak 72-column test to avoid a false-positive
* scripts/git-hooks/commit-msg: Don't warn about a line that is longer than 72 if it is a comment. Git-generated comments would occasionally trigger this.
This commit is contained in:
parent
3d213a17fa
commit
0fd74a564e
@ -101,7 +101,7 @@ sub check_msg($$)
|
||||
# Limit line length to allow for the ChangeLog's leading TAB.
|
||||
foreach my $line (@line)
|
||||
{
|
||||
72 < length $line
|
||||
72 < length $line && $line =~ /^[^#]/
|
||||
and return 'line longer than 72';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user