From b7743213447f8c9aa4afa0f2ea9fac56628c57e3 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Fri, 24 Jun 2016 00:40:43 +0200 Subject: [PATCH] scripts: relax line length check for fixed commit It is better to keep the line "Fixes:" longer than 75 characters than splitting. Signed-off-by: Thomas Monjalon Acked-by: Bruce Richardson --- 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 153f378ee7..4253d14b9c 100755 --- a/scripts/check-git-log.sh +++ b/scripts/check-git-log.sh @@ -111,7 +111,7 @@ bad=$(echo "$headlines" | awk 'length>60 {print}' | sed 's,^,\t,') [ -z "$bad" ] || printf "Headline too long:\n$bad\n" # check body lines length (75 max) -bad=$(echo "$bodylines" | awk 'length>75 {print}' | sed 's,^,\t,') +bad=$(echo "$bodylines" | grep -v '^Fixes:' | awk 'length>75 {print}' | sed 's,^,\t,') [ -z "$bad" ] || printf "Line too long:\n$bad\n" # check tags spelling -- 2.20.1