Mercurial > hg
comparison tests/test-subrepo-relative-path.t @ 41457:6c10eba6b9cd stable
subrepo: prohibit variable expansion on creation of hg subrepo (SEC)
It's probably wrong to expand path at localrepo.*repository() layer, but
fixing the layering issue would require careful inspection of call paths.
So, this patch adds add a validation to the subrepo constructor.
os.path.realpath(util.expandpath(root)) is what vfsmod.vfs() would do.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 08 Jan 2019 22:07:45 +0900 |
parents | 41ac8ea1bdd7 |
children | ebee234d952a |
comparison
equal
deleted
inserted
replaced
41456:31286c9282df | 41457:6c10eba6b9cd |
---|