mercurial/debugcommands.py
changeset 49871 cfe8d88a453e
parent 49840 5177be2b4387
child 49914 b1e4c74beb6f
--- a/mercurial/debugcommands.py	Sat Dec 03 05:53:13 2022 +0100
+++ b/mercurial/debugcommands.py	Sat Dec 03 00:24:28 2022 +0100
@@ -4500,7 +4500,8 @@
                 _(b'--peer %s not supported with HTTP peers') % opts[b'peer']
             )
         else:
-            peer = httppeer.makepeer(ui, path, opener=opener)
+            peer_path = urlutil.try_path(ui, path)
+            peer = httppeer.makepeer(ui, peer_path, opener=opener)
 
         # We /could/ populate stdin/stdout with sock.makefile()...
     else: