diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2012-11-12 18:41:08 +0100 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2012-11-12 15:34:53 -0500 |
commit | 08c2599c3274c1f473ccae2aae67c04d4bbb57e4 (patch) | |
tree | b717c6c101be0e8f4c17da4e9f87259b04e561ae /contrib | |
parent | 55dd56e042f96832327e07ee500a60db7fd244b9 (diff) | |
download | git-08c2599c3274c1f473ccae2aae67c04d4bbb57e4.tar.gz git-08c2599c3274c1f473ccae2aae67c04d4bbb57e4.tar.xz |
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>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/remote-helpers/git-remote-hg | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index a9a1e8fa5..07754bdeb 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 |