diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-04-26 16:12:38 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-26 15:20:27 -0700 |
commit | 877ee9cc7eec7f1cf43d726f6a92c20fdfe83ca9 (patch) | |
tree | 0c0f64779db954b9c4150e2a54493c01f270b66f | |
parent | remote-bzr: tell bazaar to be quiet (diff) | |
download | tgif-877ee9cc7eec7f1cf43d726f6a92c20fdfe83ca9.tar.xz |
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>
-rwxr-xr-x | contrib/remote-helpers/git-remote-bzr | 4 |
1 files changed, 4 insertions, 0 deletions
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: |