Skip to content

Commit 08c2599

Browse files
felipecpeff
authored andcommitted
remote-hg: avoid bad refs
Turns out fast-export throws bad 'reset' commands because of a behavior in transport-helper that is not even needed. Either way, better to ignore them, otherwise the user will get warnings when we OK them. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent 55dd56e commit 08c2599

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/remote-helpers/git-remote-hg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,9 @@ def do_export(parser):
704704
elif ref.startswith('refs/tags/'):
705705
tag = ref[len('refs/tags/'):]
706706
parser.repo.tag([tag], node, None, True, None, {})
707+
else:
708+
# transport-helper/fast-export bugs
709+
continue
707710
print "ok %s" % ref
708711

709712
print

0 commit comments

Comments
 (0)