pygit2
pygit2 copied to clipboard
Mailmap with empty email address is not parsed
Environment:
- Debian sid
- Python 3.11.6
- libgit2-1.7.1+ds-2
- pygit2 1.13.3-1+b1
Test case:
from pygit2 import Mailmap
Mailmap.from_buffer("RealName <[email protected]> oldname <>")
Result:
ValueError: invalid argument: 'replace_email && *replace_email'
Expected result:
This syntax is accepted by Git (mapped names are shown in git log). Empty emails should be allowed.
Is this correct set of email addresses by RFC? Shouldn’t they be separated by comma? And yes, putting the comma doesn’t help either.