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:
parent
97253a2332
commit
160695949a
@ -652,6 +652,10 @@ def parse_commit(parser):
|
||||
if parser.check('merge'):
|
||||
die('octopus merges are not supported yet')
|
||||
|
||||
# fast-export adds an extra newline
|
||||
if data[-1] == '\n':
|
||||
data = data[:-1]
|
||||
|
||||
files = {}
|
||||
|
||||
for line in parser:
|
||||
|
Loading…
Reference in New Issue
Block a user