Skip to content

Commit

Permalink
remote-hg: avoid bad refs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Contreras authored and Jeff King committed Nov 12, 2012
1 parent 55dd56e commit 08c2599
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/remote-helpers/git-remote-hg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08c2599

Please sign in to comment.