mercurial/statichttprepo.py
changeset 49762 c4d587fa161c
parent 49757 5f71fff8dc74
child 50128 2f60cd6442fd
--- a/mercurial/statichttprepo.py	Sat Dec 03 06:16:58 2022 +0100
+++ b/mercurial/statichttprepo.py	Fri Dec 02 19:34:01 2022 +0100
@@ -262,5 +262,5 @@
 def make_peer(ui, path, create, intents=None, createopts=None):
     if create:
         raise error.Abort(_(b'cannot create new static-http repository'))
-    path = path.loc
-    return statichttprepository(ui, path[7:]).peer()
+    url = path.loc[7:]
+    return statichttprepository(ui, url).peer(path=path)