aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-03-11 19:26:07 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2011-03-11 19:26:07 -0500
commit7cf134c73d043e1adc1ac6361b202afa0d0f4ca9 (patch)
tree02842f2ddbf93f407c956502d5ad1ed5ce8111d4
parentMerge branch 'ticket/rxu/10035' into develop-olympus (diff)
downloadphpbb-7cf134c73d043e1adc1ac6361b202afa0d0f4ca9.tar.gz
phpbb-7cf134c73d043e1adc1ac6361b202afa0d0f4ca9.tar.bz2
phpbb-7cf134c73d043e1adc1ac6361b202afa0d0f4ca9.zip
[ticket/10092] Ignore overlength comment lines in commit-msg hook.
PHPBB3-10092
-rwxr-xr-xgit-tools/hooks/commit-msg2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-tools/hooks/commit-msg b/git-tools/hooks/commit-msg
index ad4d69a9da..6d4f02a1d2 100755
--- a/git-tools/hooks/commit-msg
+++ b/git-tools/hooks/commit-msg
@@ -66,7 +66,7 @@ then
exit 0
fi
-msg=$(grep -nE '.{81,}' "$1");
+msg=$(grep -v '^#' "$1" |grep -nE '.{81,}')
if [ $? -eq 0 ]
then