mercurial/sshpeer.py
changeset 49757 5f71fff8dc74
parent 49751 a6e2a668c746
child 49761 73ed1d13c0bf
--- a/mercurial/sshpeer.py	Fri Dec 02 18:18:57 2022 +0100
+++ b/mercurial/sshpeer.py	Fri Dec 02 18:19:59 2022 +0100
@@ -612,6 +612,7 @@
 
     The returned object conforms to the ``wireprotov1peer.wirepeer`` interface.
     """
+    path = path.loc
     u = urlutil.url(path, parsequery=False, parsefragment=False)
     if u.scheme != b'ssh' or not u.host or u.path is None:
         raise error.RepoError(_(b"couldn't parse location %s") % path)