diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-11-15 09:13:19 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-11-15 09:13:19 +0100 |
commit | 5403fa516bb83181d78789cd2cad8ed59c69de1e (patch) | |
tree | c885eacdff86d0a24c54a854beba8e916ac39905 /git-hooks/commit-msg | |
parent | correct comment (diff) | |
download | core-5403fa516bb83181d78789cd2cad8ed59c69de1e.tar.gz core-5403fa516bb83181d78789cd2cad8ed59c69de1e.zip |
commit-msg hook: allow commit message that *starts* with an asterisk
Diffstat (limited to 'git-hooks/commit-msg')
-rwxr-xr-x | git-hooks/commit-msg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/commit-msg b/git-hooks/commit-msg index d51a33035855..62572138578b 100755 --- a/git-hooks/commit-msg +++ b/git-hooks/commit-msg @@ -32,7 +32,7 @@ test "" = "$(grep '^Signed-off-by: ' "$1" | # Check that the first line exists, and is not an asterisk -if [ -z "`head -n 1 $1 | grep -v '^[ \t]*\*'`" ] ; then +if [ -z "`head -n 1 $1 | grep -v '^[ \t]*\*$'`" ] ; then abort "$1" "Please provide the general description on the first line." fi |