branch | stable |
changeset 50987 | 758e40b9a8af |
parent 50663 | 60f9602b413e |
child 50990 | 12c308c55e53 |
--- 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: