--- a/mercurial/hg.py Fri Dec 02 17:41:44 2022 +0100 +++ b/mercurial/hg.py Sat Dec 03 00:19:23 2022 +0100 @@ -274,7 +274,7 @@ intents=intents, createopts=createopts, ) - peer = repo.peer() + peer = repo.peer(path=peer_path) return peer