From b3553246c6e1e444681ef5cc2987d693edc01f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 1 Mar 2013 19:31:56 +0100 Subject: [PATCH] grep actually doesn't normally know \t, but [:blank:] is [ \t] Change-Id: Ie9bf8ea60f1c0595aa3ac2e0f9b3e6505af30e6c --- .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 637b1498ad66..e3dfe6910a18 100755 --- a/.git-hooks/commit-msg +++ b/.git-hooks/commit-msg @@ -35,7 +35,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 '^[[:blank:]]*\*$'`" ] ; then abort "$1" "Please provide the general description on the first line." fi