mirror of
https://github.com/git/git.git
synced 2026-02-13 19:31:58 +00:00
remote-hg: Postel's law dictates we should handle Author<author@mail>
We should handle a missing space before the email part of an author ident gracefully. See for example the icedtea6 repository. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Pat Thoyts
parent
b1b3095810
commit
5b7c03ba7e
@@ -76,7 +76,7 @@ class GitHg(object):
|
||||
author = ctx.user()
|
||||
|
||||
# check for git author pattern compliance
|
||||
regex = re.compile('^(.*?) \<(.*?)\>(.*)$')
|
||||
regex = re.compile('^(.*?) ?\<(.*?)\>(.*)$')
|
||||
a = regex.match(author)
|
||||
|
||||
if a:
|
||||
|
||||
Reference in New Issue
Block a user