Skip to content

Commit 12ba4bd

Browse files
felipecpeff
authored andcommitted
remote-hg: the author email can be null
Like 'Foo <>'. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent e30473c commit 12ba4bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/remote-helpers/git-remote-hg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ import urllib
3535
#
3636

3737
NAME_RE = re.compile('^([^<>]+)')
38-
AUTHOR_RE = re.compile('^([^<>]+?)? ?<([^<>]+)>$')
39-
AUTHOR_HG_RE = re.compile('^(.*?) ?<(.+?)(?:>(.+)?)?$')
40-
RAW_AUTHOR_RE = re.compile('^(\w+) (?:(.+)? )?<(.+)> (\d+) ([+-]\d+)')
38+
AUTHOR_RE = re.compile('^([^<>]+?)? ?<([^<>]*)>$')
39+
AUTHOR_HG_RE = re.compile('^(.*?) ?<(.*?)(?:>(.+)?)?$')
40+
RAW_AUTHOR_RE = re.compile('^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)')
4141

4242
def die(msg, *args):
4343
sys.stderr.write('ERROR: %s\n' % (msg % args))

0 commit comments

Comments
 (0)