From d9059d7bd512d7bc9a9110cbe3841d2f1874cb44 Mon Sep 17 00:00:00 2001 From: Mikael Falkvidd Date: Fri, 19 Jan 2018 17:52:07 +0100 Subject: [PATCH] Relax Gitler on commit headline length (#1031) The guide we are referring to ( https://chris.beams.io/posts/git-commit/ ) says: shoot for 50 characters, but consider 72 the hard limit so let Gitler consider 72 the hard limit (instead of 50). --- .ci/gitler.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/gitler.sh b/.ci/gitler.sh index 5cb3b6b..5d815e6 100755 --- a/.ci/gitler.sh +++ b/.ci/gitler.sh @@ -9,9 +9,9 @@ echo "No subjects with leading lower case characters
" > leading_lowercases.t echo "No subjects with trailing periods
" > trailing_periods.txt echo "No body lines are too wide
" > too_long_body_lines.txt -too_long_subjects=`awk 'length > 50' subjects.txt` +too_long_subjects=`awk 'length > 72' subjects.txt` if [ -n "$too_long_subjects" ]; then - echo "Commit subjects that are too wide (>50 characters):" > too_long_subjects.txt + echo "Commit subjects that are too wide (>72 characters):" > too_long_subjects.txt echo "$too_long_subjects" >> too_long_subjects.txt sed -i -e 's/$/
/' too_long_subjects.txt result=1