commit-msg hook: allow commit message that *starts* with an asterisk

This commit is contained in:
Lionel Elie Mamane
2011-11-15 09:13:19 +01:00
parent a5b21ebc93
commit 5403fa516b

View File

@@ -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