summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/git-hooks/commit-msg2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/git-hooks/commit-msg b/scripts/git-hooks/commit-msg
index 7d0891efc..22f595ff2 100755
--- a/scripts/git-hooks/commit-msg
+++ b/scripts/git-hooks/commit-msg
@@ -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';
}