Mercurial > hg
changeset 49741:2aaa5d1e57e9
path: pass `path` to `peer` in `hg init`
We directly use the `path` object to build the `peer` object.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 02 Dec 2022 16:34:00 +0100 |
parents | 53ad92b20556 |
children | 30eb36d93072 |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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()