remote-hg: strip extra newline

There's no functional change since mercurial commit operation strips
that anyway, but that's no excuse for us not to do the right thing. So
let's be explicit about it.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Felipe Contreras
2013-04-22 16:55:24 -05:00
parent 89c779ac86
commit 4eac60395f

View File

@@ -652,6 +652,10 @@ def parse_commit(parser):
if parser.check('merge'): if parser.check('merge'):
die('octopus merges are not supported yet') die('octopus merges are not supported yet')
# fast-export adds an extra newline
if data[-1] == '\n':
data = data[:-1]
files = {} files = {}
for line in parser: for line in parser: