commit-msg hook: allow commit message that *starts* with an asterisk
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user