Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailmap with empty email address is not parsed #1264

Open
pulkomandy opened this issue Jan 3, 2024 · 0 comments
Open

Mailmap with empty email address is not parsed #1264

pulkomandy opened this issue Jan 3, 2024 · 0 comments

Comments

@pulkomandy
Copy link

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 <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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant