From nobody Mon Feb 9 09:32:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+53742+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+53742+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1580856573020770.2308148591253; Tue, 4 Feb 2020 14:49:33 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id lKYDYY1788612x89jZJ3ukEL; Tue, 04 Feb 2020 14:49:32 -0800 X-Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.61]) by mx.groups.io with SMTP id smtpd.web09.1502.1580856571748531987 for ; Tue, 04 Feb 2020 14:49:31 -0800 X-Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-56-tAXjPLj7OkWLbnLzBI7glA-1; Tue, 04 Feb 2020 17:49:28 -0500 X-Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EDEB7A0CBF; Tue, 4 Feb 2020 22:49:27 +0000 (UTC) X-Received: from x1w.redhat.com (ovpn-204-152.brq.redhat.com [10.40.204.152]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4B49B7FB79; Tue, 4 Feb 2020 22:49:25 +0000 (UTC) From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= To: devel@edk2.groups.io Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Bob Feng , Liming Gao Subject: [edk2-devel] [PATCH 1/3] BaseTools/Scripts/PatchCheck.py: Do not use mailmap Date: Tue, 4 Feb 2020 23:49:14 +0100 Message-Id: <20200204224916.11320-2-philmd@redhat.com> In-Reply-To: <20200204224916.11320-1-philmd@redhat.com> References: <20200204224916.11320-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: tAXjPLj7OkWLbnLzBI7glA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,philmd@redhat.com X-Gm-Message-State: Xd8OI7RY4TUdGKbn4bf8DVkbx1787277AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1580856572; bh=EjMJ7A+xbt1Z+ihADEQb23mEWZa1IDY21G2s18aIxw8=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=aeysNPLzT9bZXkS/rrKWgQTZ8J1rT0v6oSze/HqYf0T13Y6ijrNhr1lzZhvHhaeiIkV +bCdCEbsyc3ejuKGJDtxPzkpEPYqX+NZ8wRQTuavM7G42alikhAOKRBllBeBP1p4w1Pj5 qyUXlQ+TMtKXdXCkp3hf0T+FaXkCxN58gLI= X-ZohoMail-DKIM: pass (identity @groups.io) From: Philippe Mathieu-Daud=C3=A9 We check the author/committer name/email are properly displayed since commits 8ffa47fb3ab..c0328cf3803. However if PatchCheck.py uses the mailmap, it will check sanitized names/emails. Use the --no-use-mailmap option so PatchCheck.py will check unsanitized input. Cc: Bob Feng Cc: Liming Gao Signed-off-by: Philippe Mathieu-Daude --- BaseTools/Scripts/PatchCheck.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BaseTools/Scripts/PatchCheck.py b/BaseTools/Scripts/PatchCheck= .py index 6823cc69bb9f..07881abaf64e 100755 --- a/BaseTools/Scripts/PatchCheck.py +++ b/BaseTools/Scripts/PatchCheck.py @@ -643,11 +643,13 @@ class CheckGitCommits: =20 def read_patch_from_git(self, commit): # Run git to get the commit patch - return self.run_git('show', '--pretty=3Demail', '--no-textconv', c= ommit) + return self.run_git('show', '--pretty=3Demail', '--no-textconv', + '--no-use-mailmap', commit) =20 def read_committer_email_address_from_git(self, commit): # Run git to get the committer email - return self.run_git('show', '--pretty=3D%cn <%ce>', '--no-patch', = commit) + return self.run_git('show', '--pretty=3D%cn <%ce>', '--no-patch', + '--no-use-mailmap', commit) =20 def run_git(self, *args): cmd =3D [ 'git' ] --=20 2.21.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#53742): https://edk2.groups.io/g/devel/message/53742 Mute This Topic: https://groups.io/mt/70984701/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-