diff -r 53ad92b20556 -r 2aaa5d1e57e9 mercurial/commands.py --- a/mercurial/commands.py Fri Dec 02 16:30:48 2022 +0100 +++ b/mercurial/commands.py Fri Dec 02 16:34:00 2022 +0100 @@ -4423,7 +4423,7 @@ Returns 0 on success. """ opts = pycompat.byteskwargs(opts) - path = urlutil.get_clone_path(ui, dest)[1] + path = urlutil.get_clone_path_obj(ui, dest) peer = hg.peer(ui, opts, path, create=True) peer.close()