I have a git repo with malformed email addresses (from an ancient CVS import, probably). In fact it's exactly the same repo as mentioned in this stackoverflow answer: https://stackoverflow.com/a/59231457
The mailmap file to fix this ought to be:
Richard W.M. Jones <rjones@redhat.com> <"Richard W.M. Jones <rjones@redhat.com>">
Unfortunately because of the way regexps are used in the _parse_file function, that won't work:
$ git filter-repo --mailmap mailmap
Unparseable mailmap file: line #1 is bad: b'Richard W.M. Jones <rjones@redhat.com> <"Richard W.M. Jones <rjones@redhat.com>">\n'
Because of the way the regular expression is done, I don't think it's possible to solve this easily and continue using regexps, so I couldn't find a simple fix.
I have a git repo with malformed email addresses (from an ancient CVS import, probably). In fact it's exactly the same repo as mentioned in this stackoverflow answer: https://stackoverflow.com/a/59231457
The mailmap file to fix this ought to be:
Unfortunately because of the way regexps are used in the
_parse_filefunction, that won't work:Because of the way the regular expression is done, I don't think it's possible to solve this easily and continue using regexps, so I couldn't find a simple fix.