libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.58k stars 382 forks source link

Mailmap with empty email address is not parsed #1264

Open pulkomandy opened 5 months ago

pulkomandy commented 5 months ago

Environment:

Test case:

from pygit2 import Mailmap
Mailmap.from_buffer("RealName <real.address@domain.com> 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.