From: Felipe Contreras Date: Mon, 22 Apr 2013 21:55:24 GMT Subject: [PATCH 16/16] remote-hg: strip extra newline Message-ID: <1366667724-567-17-git-send-email-felipe.contreras@gmail.com> In-Reply-To: <1366667724-567-1-git-send-email-felipe.contreras@gmail.com> There's no functional change since mercurial commit operation strips that anyway, but that's no excuse for us not to do the right thing. So let's be explicit about it. Signed-off-by: Felipe Contreras --- contrib/remote-helpers/git-remote-hg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index d0e552c..fda4199 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -652,6 +652,10 @@ def parse_commit(parser): if parser.check('merge'): die('octopus merges are not supported yet') + # fast-export adds an extra newline + if data[-1] == '\n': + data = data[:-1] + files = {} for line in parser: -- 1.8.2.1.790.g4588561