Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion git_of_theseus/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def dump_json(output_fn, key_type, label_fmt=lambda x: x):

@functools.lru_cache(maxsize=None)
def get_mailmap_author_name_email(repo, author_name, author_email):
pre_mailmap_author_email = f"{author_name} <{author_email}>"
pre_mailmap_author_email = f"{author_name.lstrip('-') if author_name else author_email} <{author_email}>"
mail_mapped_author_email: str = repo.git.check_mailmap(pre_mailmap_author_email)
mailmap_name, mailmap_email = mail_mapped_author_email[:-1].split(" <", maxsplit=1)
return mailmap_name, mailmap_email
Expand Down