Skip to content
Snippets Groups Projects
Commit f5e46dfb authored by Brendan Cully's avatar Brendan Cully
Browse files

share: use defaultdest to compute unspecified destination

This harmonizes with clone, and avoids creating a .hg in the current directory if
the source ends with a /
parent ffa6f2eb
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@
raise util.Abort(_('can only share local repositories'))
if not dest:
dest = os.path.basename(source)
dest = defaultdest(source)
else:
dest = ui.expandpath(dest)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment