-
Notifications
You must be signed in to change notification settings - Fork 92
Description
I've pointed git-of-theseus at https://github.com/mozilla/gecko-dev/, sadly it fails.
First issue: not enough values to unpack
in analyze.py:555
mailmap_name, mailmap_email = mail_mapped_author_email[:-1].split(" <", maxsplit=1)
The problem here is gecko-dev has authors without an email address, which end up as an empty author_name
in this function; this was easily fixed by:
- pre_mailmap_author_email = f"{author_name} <{author_email}>"
+ pre_mailmap_author_email = f"{author_name or author_email} <{author_email}>"
Second issue: unknown switch 'f'
when running git check-mailmap
, also triggered at analyze.py:555
Looks there's an author which is just -f
. Yeah, I don't know either. mozilla/gecko-dev@1ea9e41
So the command line which ends up running is git check-mailmap -f
, which fails. This should be git check-mailmap -- -f
.
The easy work-around is to delete the .mailmap
file.