From 5dddefc8d6dd67807cdf6a3974fdfed2c87afee1 Mon Sep 17 00:00:00 2001 From: Damien Picard Date: Mon, 22 Jun 2026 17:12:48 +0200 Subject: [PATCH] Credits Script: Ignore rubbish at the end of co-author lines Co-author lines are parsed in commit messages to add to the credits. When the line does not end with the author's email, it will create a duplicated entry. This is easy to fix if the email is enclosed in <>, just discard what follows the address. Example of this in commit e10a50f89002bf7ef97a633acd24b07a783d5fb9 Ref !160527 --- tools/utils/git_log.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/utils/git_log.py b/tools/utils/git_log.py index d91366644d0..7f52217e3dd 100644 --- a/tools/utils/git_log.py +++ b/tools/utils/git_log.py @@ -118,6 +118,9 @@ class GitCommit: if not ("<" in author and ">" in author): # Always follow `Name <>` spec, even when no email is given. author = author + " <>" + elif not author.endswith(">"): + # In case the co-author line has rubbish after the author email. + author = author.rsplit(">", 1)[0] + ">" authors.append(author) return authors