mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
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>
This commit is contained in:
parent
55dd56e042
commit
08c2599c32
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue