mercurial/httppeer.py
changeset 50998 12c308c55e53
parent 50952 18c8c18993f0
parent 50786 758e40b9a8af
--- a/mercurial/httppeer.py	Wed Jan 25 15:34:27 2023 +0100
+++ b/mercurial/httppeer.py	Wed Oct 11 02:02:46 2023 +0200
@@ -662,7 +662,8 @@
         return inst
     except error.RepoError as httpexception:
         try:
-            r = statichttprepo.make_peer(ui, b"static-" + path.loc, create)
+            path = path.copy(new_raw_location=b"static-" + path.rawloc)
+            r = statichttprepo.make_peer(ui, path, create)
             ui.note(_(b'(falling back to static-http)\n'))
             return r
         except error.RepoError: