mercurial/dispatch.py
changeset 45920 1441f4d57083
parent 45918 ac565222b9f8
child 45942 89a2afe31e82
--- a/mercurial/dispatch.py	Fri Oct 16 19:03:09 2020 +0530
+++ b/mercurial/dispatch.py	Fri Nov 20 14:34:15 2020 +0530
@@ -919,7 +919,8 @@
                 return
             hgvfs = vfs.vfs(os.path.join(path, b".hg"))
             sharedvfs = localrepo._getsharedvfs(hgvfs, requirements)
-            ui.readconfig(sharedvfs.join(b"hgrc"), path)
+            root = sharedvfs.base
+            ui.readconfig(sharedvfs.join(b"hgrc"), root)
     except IOError:
         pass