aboutsummaryrefslogtreecommitdiffstats
path: root/git-tools
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 /git-tools
parentaa8f4000d30a3f89cb876eb14e3b7522c68f90f0 (diff)
downloadforums-7cf134c73d043e1adc1ac6361b202afa0d0f4ca9.tar
forums-7cf134c73d043e1adc1ac6361b202afa0d0f4ca9.tar.gz
forums-7cf134c73d043e1adc1ac6361b202afa0d0f4ca9.tar.bz2
forums-7cf134c73d043e1adc1ac6361b202afa0d0f4ca9.tar.xz
forums-7cf134c73d043e1adc1ac6361b202afa0d0f4ca9.zip
[ticket/10092] Ignore overlength comment lines in commit-msg hook.
PHPBB3-10092
Diffstat (limited to 'git-tools')
-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