Skip to content

Commit 845241d

Browse files
felipecgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f2de0b9 commit 845241d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/remote-helpers/git-remote-hg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ def export_ref(repo, name, kind, head):
326326
else:
327327
modified, removed = get_filechanges(repo, c, parents[0])
328328

329+
desc += '\n'
330+
329331
if mode == 'hg':
330332
extra_msg = ''
331333

@@ -349,7 +351,6 @@ def export_ref(repo, name, kind, head):
349351
else:
350352
extra_msg += "extra : %s : %s\n" % (key, urllib.quote(value))
351353

352-
desc += '\n'
353354
if extra_msg:
354355
desc += '\n--HG--\n' + extra_msg
355356

0 commit comments

Comments
 (0)