summaryrefslogtreecommitdiff
path: root/git-hooks
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2011-11-15 09:13:19 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2011-11-15 09:13:19 +0100
commit5403fa516bb83181d78789cd2cad8ed59c69de1e (patch)
treec885eacdff86d0a24c54a854beba8e916ac39905 /git-hooks
parenta5b21ebc93ba34c36ca111c98d90e8f3bd19657b (diff)
commit-msg hook: allow commit message that *starts* with an asterisk
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/commit-msg2
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