From: Sean Christopherson Date: Wed, 25 Sep 2019 23:46:49 +0000 (-0700) Subject: checkpatch: remove obsolete period from "ambiguous SHA1" query X-Git-Tag: v5.4-rc1~46^2~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a7f4455ad321400e1361ab94fd6858c5b2fe0cf;p=platform%2Fkernel%2Flinux-rpi.git checkpatch: remove obsolete period from "ambiguous SHA1" query Git dropped the period from its "ambiguous SHA1" error message in commit 0c99171ad2 ("get_short_sha1: mark ambiguity error for translation"), circa 2016. Drop the period from checkpatch's associated query so as to match both the old and new error messages. Link: http://lkml.kernel.org/r/20190830163103.15914-1-sean.j.christopherson@intel.com Signed-off-by: Sean Christopherson Acked-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 7603711..4b25a94 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -962,7 +962,7 @@ sub git_commit_info { return ($id, $desc) if ($#lines < 0); - if ($lines[0] =~ /^error: short SHA1 $commit is ambiguous\./) { + if ($lines[0] =~ /^error: short SHA1 $commit is ambiguous/) { # Maybe one day convert this block of bash into something that returns # all matching commit ids, but it's very slow... #