From: Felipe Contreras Date: Fri, 26 Apr 2013 21:12:38 +0000 (-0500) Subject: remote-bzr: strip extra newline X-Git-Tag: v1.8.3-rc0~6 X-Git-Url: https://repo.or.cz/w/git.git/commitdiff_plain/877ee9cc7eec7f1cf43d726f6a92c20fdfe83ca9 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 --- 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: