Show More
@@ -336,11 +336,12 b' def share(' | |||||
336 | if not dest: |
|
336 | if not dest: | |
337 | dest = defaultdest(source) |
|
337 | dest = defaultdest(source) | |
338 | else: |
|
338 | else: | |
339 |
dest = urlutil.get_clone_path(ui, dest) |
|
339 | dest = urlutil.get_clone_path_obj(ui, dest).loc | |
340 |
|
340 | |||
341 | if isinstance(source, bytes): |
|
341 | if isinstance(source, bytes): | |
342 |
|
|
342 | source_path = urlutil.get_clone_path_obj(ui, source) | |
343 | srcrepo = repository(ui, source) |
|
343 | srcrepo = repository(ui, source_path.loc) | |
|
344 | branches = (source_path.branch, []) | |||
344 | rev, checkout = addbranchrevs(srcrepo, srcrepo, branches, None) |
|
345 | rev, checkout = addbranchrevs(srcrepo, srcrepo, branches, None) | |
345 | else: |
|
346 | else: | |
346 | srcrepo = source.local() |
|
347 | srcrepo = source.local() |
General Comments 0
You need to be logged in to leave comments.
Login now