From 5403fa516bb83181d78789cd2cad8ed59c69de1e Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Tue, 15 Nov 2011 09:13:19 +0100 Subject: [PATCH] commit-msg hook: allow commit message that *starts* with an asterisk --- git-hooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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