diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-03-14 13:58:19 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-03-14 13:58:19 +0100 |
commit | 4f1056ad72bdfb81a8d2d1c494b88b6d93aaf7c0 (patch) | |
tree | c6e2bddb87a5bfe57a3788fa9d37e7b63afe2acf | |
parent | Merge branch 'ticket/p/10078' into develop-olympus (diff) | |
parent | [ticket/10092] Ignore overlength comment lines in commit-msg hook. (diff) | |
download | phpbb-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.
-rwxr-xr-x | git-tools/hooks/commit-msg | 2 |
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 |