aboutsummaryrefslogtreecommitdiffstats
path: root/git-tools/hooks
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-03-14 13:58:19 +0100
committerAndreas Fischer <bantu@phpbb.com>2011-03-14 13:58:19 +0100
commit4f1056ad72bdfb81a8d2d1c494b88b6d93aaf7c0 (patch)
treec6e2bddb87a5bfe57a3788fa9d37e7b63afe2acf /git-tools/hooks
parent4dd7b4cb8f5136459d361aab807f511fb83aeaa5 (diff)
parent7cf134c73d043e1adc1ac6361b202afa0d0f4ca9 (diff)
downloadforums-4f1056ad72bdfb81a8d2d1c494b88b6d93aaf7c0.tar
forums-4f1056ad72bdfb81a8d2d1c494b88b6d93aaf7c0.tar.gz
forums-4f1056ad72bdfb81a8d2d1c494b88b6d93aaf7c0.tar.bz2
forums-4f1056ad72bdfb81a8d2d1c494b88b6d93aaf7c0.tar.xz
forums-4f1056ad72bdfb81a8d2d1c494b88b6d93aaf7c0.zip
Merge branch 'ticket/p/10092' into develop-olympus
* ticket/p/10092: [ticket/10092] Ignore overlength comment lines in commit-msg hook.
Diffstat (limited to 'git-tools/hooks')
-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 9114cd368a..4f6ae71d4b 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