From 877ee9cc7eec7f1cf43d726f6a92c20fdfe83ca9 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Fri, 26 Apr 2013 16:12:38 -0500 Subject: [PATCH] remote-bzr: strip extra newline It's added by fast-export, the user didn't type it. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- contrib/remote-helpers/git-remote-bzr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr index 6ccca8e7dc..c19ed0e26b 100755 --- a/contrib/remote-helpers/git-remote-bzr +++ b/contrib/remote-helpers/git-remote-bzr @@ -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: -- 2.11.4.GIT