From: Stephen Rothwell Date: Wed, 30 Jan 2019 00:19:50 +0000 (+1100) Subject: check_fixes: supply advice about short SHA1 abbrevs X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;ds=sidebyside;h=e81b3701b03a70e546fe509b71048087d58f6ca3;p=next-scripts check_fixes: supply advice about short SHA1 abbrevs --- diff --git a/check_fixes b/check_fixes index 34576ce..46a0b37 100755 --- a/check_fixes +++ b/check_fixes @@ -73,7 +73,7 @@ has these problem(s): fi if [ "${#sha}" -lt 12 ]; then - msg="${msg:+${msg}${nl}} - SHA1 should be at least 12 digits long" + msg="${msg:+${msg}${nl}} - SHA1 should be at least 12 digits long${nl} Can be fixed by setting core.abbrev to 12 (or more) or (for git v2.11${nl} or later) just making sure it is not set (or set to \"auto\")." fi # reduce the subject to the part between () if there if [[ "$subject" =~ ^\((.*)\) ]]; then