mercurial/subrepo.py
branchstable
changeset 41583 87a6e3c953e0
parent 41458 83377b4b4ae0
child 41679 91701785c2c5
--- a/mercurial/subrepo.py	Fri Feb 01 13:44:09 2019 -0500
+++ b/mercurial/subrepo.py	Tue Feb 05 20:50:54 2019 -0500
@@ -405,7 +405,7 @@
         super(hgsubrepo, self).__init__(ctx, path)
         self._state = state
         r = ctx.repo()
-        root = r.wjoin(path)
+        root = r.wjoin(util.localpath(path))
         create = allowcreate and not r.wvfs.exists('%s/.hg' % path)
         # repository constructor does expand variables in path, which is
         # unsafe since subrepo path might come from untrusted source.