Skip to content

Commit 877ee9c

Browse files
Felipe Contrerasgitster
authored andcommitted
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>
1 parent 4d74cd4 commit 877ee9c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

contrib/remote-helpers/git-remote-bzr

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,10 @@ def parse_commit(parser):
549549
parents.append(parser.get_mark())
550550
parser.next()
551551

552+
# fast-export adds an extra newline
553+
if data[-1] == '\n':
554+
data = data[:-1]
555+
552556
files = {}
553557

554558
for line in parser:

0 commit comments

Comments
 (0)