From: Daniel P. Berrangé Date: Wed, 21 Oct 2020 16:31:35 +0000 (+0100) Subject: scripts: fix error from checkpatch.pl when no commits are found X-Git-Tag: v5.2.0-rc0~23^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d4274d6fe97da3e13ae21720ef0b57d6c3dc980;p=thirdparty%2Fqemu.git scripts: fix error from checkpatch.pl when no commits are found The error message was supposed to mention the input revision list start point, not the branch flag. Signed-off-by: Daniel P. Berrangé Signed-off-by: Alex Bennée Message-Id: <20201019143537.283094-3-berrange@redhat.com> Message-Id: <20201021163136.27324-6-alex.bennee@linaro.org> --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 6ed34970f90..88c858f67cb 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -392,7 +392,7 @@ if ($chk_branch) { close $HASH; - die "$P: no revisions returned for revlist '$chk_branch'\n" + die "$P: no revisions returned for revlist '$ARGV[0]'\n" unless @patches; my $i = 1;