diff --git a/hgext/fetch.py b/hgext/fetch.py --- a/hgext/fetch.py +++ b/hgext/fetch.py @@ -109,11 +109,9 @@ ) ) - other = hg.peer(repo, opts, ui.expandpath(source)) - ui.status( - _(b'pulling from %s\n') - % urlutil.hidepassword(ui.expandpath(source)) - ) + path = urlutil.get_unique_pull_path(b'fetch', repo, ui, source)[0] + other = hg.peer(repo, opts, path) + ui.status(_(b'pulling from %s\n') % urlutil.hidepassword(path)) revs = None if opts[b'rev']: try: