remote-bzr: strip extra newline
authorFelipe Contreras <felipe.contreras@gmail.com>
Fri, 26 Apr 2013 21:12:38 +0000 (26 16:12 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 Apr 2013 22:20:27 +0000 (26 15:20 -0700)
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>
contrib/remote-helpers/git-remote-bzr

index 6ccca8e..c19ed0e 100755 (executable)
@@ -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: