scripts/checkpatch: Do not use mailmap
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 2 Apr 2024 11:59:58 +0000 (13:59 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 29 Apr 2024 06:37:26 +0000 (09:37 +0300)
The .mailmap file fixes mistake we already did.
Do not use it when running checkpatch.pl, otherwise
we might commit the very same mistakes.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
scripts/checkpatch.pl

index 12e9028b10ffe67cea7ca3150c9d4469253f1a26..76a0b792669cf51dd576b3d35a8243ba7a08589f 100755 (executable)
@@ -435,8 +435,8 @@ if ($chk_branch) {
        my @patches;
        my %git_commits = ();
        my $HASH;
-       open($HASH, "-|", "git", "log", "--reverse", "--no-merges", "--format=%H %s", $ARGV[0]) ||
-               die "$P: git log --reverse --no-merges --format='%H %s' $ARGV[0] failed - $!\n";
+       open($HASH, "-|", "git", "log", "--reverse", "--no-merges", "--no-mailmap", "--format=%H %s", $ARGV[0]) ||
+               die "$P: git log --reverse --no-merges --no-mailmap --format='%H %s' $ARGV[0] failed - $!\n";
 
        for my $line (<$HASH>) {
                $line =~ /^([0-9a-fA-F]{40,40}) (.*)$/;
@@ -460,7 +460,7 @@ if ($chk_branch) {
                      "-c", "diff.renamelimit=0",
                      "-c", "diff.renames=True",
                      "-c", "diff.algorithm=histogram",
-                     "show",
+                     "show", "--no-mailmap",
                      "--patch-with-stat", $hash) ||
                        die "$P: git show $hash - $!\n";
                while (<$FILE>) {