remote-hg: fix commit messages

git fast-import expects an extra newline after the commit message data, but we are adding it only on hg-git compat mode, which is why the bidirectionality tests pass. We should add it unconditionally. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Apr 18, 2013 at 01:06 UTC 845241d5446c6c4be70fcaa9f7b605e7c6760181
1 file changed +2 -1
contrib/remote-helpers/git-remote-hg
+2 -1
@@ -326,6 +326,8 @@ def export_ref(repo, name, kind, head):
326 else:
327 modified, removed = get_filechanges(repo, c, parents[0])
328
329 + desc += '\n'
330 +
331 if mode == 'hg':
332 extra_msg = ''
333
@@ -349,7 +351,6 @@ def export_ref(repo, name, kind, head):
351 else:
352 extra_msg += "extra : %s : %s\n" % (key, urllib.quote(value))
353
352 - desc += '\n'
354 if extra_msg:
355 desc += '\n--HG--\n' + extra_msg
356