]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
scripts: fix error from checkpatch.pl when no commits are found
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 21 Oct 2020 16:31:35 +0000 (17:31 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 27 Oct 2020 09:53:50 +0000 (09:53 +0000)
The error message was supposed to mention the input revision list start
point, not the branch flag.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20201019143537.283094-3-berrange@redhat.com>
Message-Id: <20201021163136.27324-6-alex.bennee@linaro.org>

scripts/checkpatch.pl

index 6ed34970f9011f924637287f8bdd5266236d4e9e..88c858f67cbb13de1c87adafb08a4f02d2d2f92f 100755 (executable)
@@ -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;