aboutsummaryrefslogtreecommitdiff
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
parentMerge branch 'ticket/p/10078' into develop-olympus (diff)
parent[ticket/10092] Ignore overlength comment lines in commit-msg hook. (diff)
downloadphpbb-4f1056ad72bdfb81a8d2d1c494b88b6d93aaf7c0.tar.gz
phpbb-4f1056ad72bdfb81a8d2d1c494b88b6d93aaf7c0.tar.bz2
phpbb-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')
-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