Browse Source

remote-bzr: strip extra newline

It's added by fast-export, the user didn't type it.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Felipe Contreras 12 years ago committed by Junio C Hamano
parent
commit
877ee9cc7e
  1. 4
      contrib/remote-helpers/git-remote-bzr

4
contrib/remote-helpers/git-remote-bzr

@ -549,6 +549,10 @@ def parse_commit(parser): @@ -549,6 +549,10 @@ def parse_commit(parser):
parents.append(parser.get_mark())
parser.next()

# fast-export adds an extra newline
if data[-1] == '\n':
data = data[:-1]

files = {}

for line in parser:

Loading…
Cancel
Save