From 48660cab922d5811dea9691ac13d96a8ec63b833 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Fri, 8 Jul 2016 19:45:54 +0200 Subject: [PATCH] scripts: fix commit check for empty list When running check-git-log.sh on a clean tree it was complaining of a wrong empty headline because '^[^:]*$' was matching. It is fixed by matching at least one character with +. Signed-off-by: Thomas Monjalon --- scripts/check-git-log.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-git-log.sh b/scripts/check-git-log.sh index c7fc0e45cd..7ea4458b1f 100755 --- a/scripts/check-git-log.sh +++ b/scripts/check-git-log.sh @@ -63,7 +63,7 @@ bad=$(echo "$headlines" | grep --color=always \ -e '\.$' \ -e '[,;!?&|]' \ -e ':.*_' \ - -e '^[^:]*$' \ + -e '^[^:]\+$' \ -e ':[^ ]' \ -e ' :' \ | sed 's,^,\t,') -- 2.20.1