Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 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 | f3b685d9e899 |
children | f65656572e25 |
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()