mercurial/dispatch.py
changeset 52422 8a52fd131d3b
parent 52421 8ac33b3f2552
child 52423 0b791c90280a
--- a/mercurial/dispatch.py	Tue Oct 22 23:50:11 2024 +0200
+++ b/mercurial/dispatch.py	Wed Oct 23 00:00:17 2024 +0200
@@ -947,8 +947,7 @@
                 return
             hgvfs = vfs.vfs(os.path.join(path, b".hg"))
             sharedvfs = localrepo._getsharedvfs(hgvfs, requirements)
-            root = sharedvfs.base
-            ui.readconfig(sharedvfs.join(b"hgrc"), root)
+            ui.readconfig(sharedvfs.join(b"hgrc"), root=path)
     except IOError:
         pass