changeset 46951:338ab1d89ddb

clone: use `get_clone_path` "Surprisingly", the new API is well suited for `hg clone` too. Differential Revision: https://phab.mercurial-scm.org/D10417
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 14 Apr 2021 18:34:42 +0200
parents 279df499511e
children 82366464190a
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Wed Apr 14 17:41:02 2021 +0200
+++ b/mercurial/hg.py	Wed Apr 14 18:34:42 2021 +0200
@@ -689,7 +689,7 @@
             if dest:
                 ui.status(_(b"destination directory: %s\n") % dest)
         else:
-            dest = ui.expandpath(dest)
+            dest = urlutil.get_clone_path(ui, dest)[0]
 
         dest = urlutil.urllocalpath(dest)
         source = urlutil.urllocalpath(source)