author | Matt Mackall <mpm@selenic.com> |
Sun, 15 Apr 2007 18:42:51 -0500 | |
changeset 4347 | 70d1491d3db2 |
parent 4346 | c593e502f7fd (diff) |
parent 4345 | ec64f263e49a (current diff) |
child 4349 | 69109aa0cddd |
--- a/mercurial/hgweb/hgweb_mod.py Thu Apr 12 16:05:28 2007 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Sun Apr 15 18:42:51 2007 -0500 @@ -703,7 +703,7 @@ # strip leading / pi = pi[1:] if pi: - root = root[:-len(pi)] + root = root[:root.rfind(root, pi)] if req.env.has_key('REPO_NAME'): rn = req.env['REPO_NAME'] + '/' root += rn