|
@@ -2133,7 +2133,10 @@ sub process {
|
|
# Check for improperly formed commit descriptions
|
|
# Check for improperly formed commit descriptions
|
|
if ($in_commit_log &&
|
|
if ($in_commit_log &&
|
|
$line =~ /\bcommit\s+[0-9a-f]{5,}/i &&
|
|
$line =~ /\bcommit\s+[0-9a-f]{5,}/i &&
|
|
- $line !~ /\b[Cc]ommit [0-9a-f]{12,40} \("/) {
|
|
|
|
|
|
+ !($line =~ /\b[Cc]ommit [0-9a-f]{12,40} \("/ ||
|
|
|
|
+ ($line =~ /\b[Cc]ommit [0-9a-f]{12,40}\s*$/ &&
|
|
|
|
+ defined $rawlines[$linenr] &&
|
|
|
|
+ $rawlines[$linenr] =~ /^\s*\("/))) {
|
|
$line =~ /\b(c)ommit\s+([0-9a-f]{5,})/i;
|
|
$line =~ /\b(c)ommit\s+([0-9a-f]{5,})/i;
|
|
my $init_char = $1;
|
|
my $init_char = $1;
|
|
my $orig_commit = lc($2);
|
|
my $orig_commit = lc($2);
|