From: Felipe Contreras Date: Mon, 12 Nov 2012 17:41:08 +0000 (+0100) Subject: remote-hg: avoid bad refs X-Git-Tag: v1.8.1-rc0~5^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/08c2599c3274c1f473ccae2aae67c04d4bbb57e4 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 Signed-off-by: Jeff King --- diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index a9a1e8fa58..07754bdeb2 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -704,6 +704,9 @@ def do_export(parser): elif ref.startswith('refs/tags/'): tag = ref[len('refs/tags/'):] parser.repo.tag([tag], node, None, True, None, {}) + else: + # transport-helper/fast-export bugs + continue print "ok %s" % ref print