Closed wschuell closed 1 year ago
Having an author name start with "-" is not possible based on the git function. The leading dash will be interpreted as option and I could not find any way to escape it.
The next best thing we can do is to only consider the email for the mailmap check, which is always possible. There was already a check for "--" in the mailmap check which I have updated to also check for "-".
The error in issue #37 is now no longer reproduced and the commit mines correctly. I argue that this solution is cleaner as the one you propose here.
Agree, thanks for the clarification!
Linked to issue https://github.com/gotec/git2net/issues/37
The process_commit method detects author or committer having - as both email and name (which would trigger an error in git check-mailmap), prints a message to stdout and returns empty dataframes (same behavior as timeouts).