From b3b877163a3d696b9b240626772a41de15b251ef Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 29 Mar 2012 13:38:43 -0500 Subject: [PATCH] remote-hg: Postel's law dictates we should handle Author 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 --- git_remote_helpers/hg/hg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_remote_helpers/hg/hg.py b/git_remote_helpers/hg/hg.py index 758ba242d8..dd5756d4bb 100644 --- a/git_remote_helpers/hg/hg.py +++ b/git_remote_helpers/hg/hg.py @@ -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: -- 2.11.4.GIT