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 <felipe.contreras@gmail.com> Signed-off-by: Jeff King <peff@peff.net>
Felipe Contreras committed
Nov 12, 2012 at 18:41 UTC
08c2599c3274c1f473ccae2aae67c04d4bbb57e4
1 file changed
+3
contrib/remote-helpers/git-remote-hg
+3
@@ -704,6 +704,9 @@ def do_export(parser):
704
elif ref.startswith('refs/tags/'):
705
tag = ref[len('refs/tags/'):]
706
parser.repo.tag([tag], node, None, True, None, {})
707
+ else:
708
+ # transport-helper/fast-export bugs
709
+ continue
710
print "ok %s" % ref
711
712
print