##// END OF EJS Templates
path: use `get_clone_path_obj` in share...
marmoute -
r50639:5f36784c default
parent child Browse files
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)[1]
339 dest = urlutil.get_clone_path_obj(ui, dest).loc
340
340
341 if isinstance(source, bytes):
341 if isinstance(source, bytes):
342 origsource, source, branches = urlutil.get_clone_path(ui, source)
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