# HG changeset patch # User Pierre-Yves David # Date 1669995240 -3600 # Node ID 2aaa5d1e57e9e103b3a5ec7febe7081c7490db00 # Parent 53ad92b20556212e4c4f7d97e93eb169fb6337cc path: pass `path` to `peer` in `hg init` We directly use the `path` object to build the `peer` object. 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()