]> git.ozlabs.org Git - next-scripts/commitdiff
check_fixes: supply advice about short SHA1 abbrevs
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 30 Jan 2019 00:19:50 +0000 (11:19 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 30 Jan 2019 00:19:50 +0000 (11:19 +1100)
check_fixes

index 34576ce0b96e73b20c8295785ae7d7f3c58465be..46a0b370169cbe879754e8c1264d7bcc211fc880 100755 (executable)
@@ -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