diff -r 9e021cffb356 -r 69359c91dc43 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Wed Apr 14 21:11:39 2021 +0200 +++ b/mercurial/debugcommands.py Wed Apr 14 21:15:22 2021 +0200 @@ -3654,7 +3654,9 @@ ) source = b"default" - source, branches = urlutil.parseurl(ui.expandpath(source)) + source, branches = urlutil.get_unique_pull_path( + b'debugssl', repo, ui, source + ) url = urlutil.url(source) defaultport = {b'https': 443, b'ssh': 22}