Skip to content

Commit

Permalink
remote-bzr: strip extra newline
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed Apr 26, 2013
1 parent 4d74cd4 commit 877ee9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/remote-helpers/git-remote-bzr
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 877ee9c

Please sign in to comment.