summaryrefslogtreecommitdiff
path: root/.git-hooks
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-03-01 19:31:56 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-03-01 19:37:38 +0100
commitb3553246c6e1e444681ef5cc2987d693edc01f12 (patch)
tree009896433625f88979d2d3fc024efdbe7381d57f /.git-hooks
parent86b49aa44e54d3dba3f0ae82b312ce4af95ce528 (diff)
grep actually doesn't normally know \t, but [:blank:] is [ \t]
Change-Id: Ie9bf8ea60f1c0595aa3ac2e0f9b3e6505af30e6c
Diffstat (limited to '.git-hooks')
-rwxr-xr-x.git-hooks/commit-msg2
1 files changed, 1 insertions, 1 deletions
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