diff -r eccf7dc7c91e -r 758e40b9a8af mercurial/httppeer.py --- a/mercurial/httppeer.py Thu Sep 14 10:52:09 2023 +0100 +++ b/mercurial/httppeer.py Thu Oct 05 14:47:42 2023 -0300 @@ -663,7 +663,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: