##// END OF EJS Templates
subrepo: avoid false unsafe path detection on Windows...
Matt Harbison -
r41747:87a6e3c9 stable
parent child Browse files
Show More
@@ -405,7 +405,7 b' class hgsubrepo(abstractsubrepo):'
405 super(hgsubrepo, self).__init__(ctx, path)
405 super(hgsubrepo, self).__init__(ctx, path)
406 self._state = state
406 self._state = state
407 r = ctx.repo()
407 r = ctx.repo()
408 root = r.wjoin(path)
408 root = r.wjoin(util.localpath(path))
409 create = allowcreate and not r.wvfs.exists('%s/.hg' % path)
409 create = allowcreate and not r.wvfs.exists('%s/.hg' % path)
410 # repository constructor does expand variables in path, which is
410 # repository constructor does expand variables in path, which is
411 # unsafe since subrepo path might come from untrusted source.
411 # unsafe since subrepo path might come from untrusted source.
General Comments 0
You need to be logged in to leave comments. Login now