Skip to content

Commit bc42004

Browse files
committed
scripts: ci: check_compliance: do not use git mailmap
When looking at git author in a commit range using git log, explicitly indicate we don't want to use the mailmap file (default git client behavior is to use it), so that the "actual" author info from the commit is used to perform the compliance check, and not whatever identity the author may have mapped to in the mailmap file (ex. their "main" email address might be different from the one they used to commit). Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 88e985a commit bc42004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci/check_compliance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ class Identity(ComplianceTest):
13221322

13231323
def run(self):
13241324
for shaidx in get_shas(COMMIT_RANGE):
1325-
commit = git("log", "--decorate=short", "-n 1", shaidx)
1325+
commit = git("log", "--decorate=short", "--no-use-mailmap", "-n 1", shaidx)
13261326
signed = []
13271327
author = ""
13281328
sha = ""

0 commit comments

Comments
 (0)