Merge with stable
authorMatt Mackall <mpm@selenic.com>
Mon, 16 Apr 2007 09:52:37 -0500
changeset 4349 69109aa0cddd
parent 4347 70d1491d3db2 (current diff)
parent 4348 b633f470944e (diff)
child 4353 1ccd3b9a7b1f
child 4356 10edaed7f909
Merge with stable
mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py
+++ b/mercurial/hgweb/hgweb_mod.py
@@ -703,7 +703,7 @@ class hgweb(object):
                     # strip leading /
                     pi = pi[1:]
                     if pi:
-                        root = root[:root.rfind(root, pi)]
+                        root = root[:root.rfind(pi)]
                     if req.env.has_key('REPO_NAME'):
                         rn = req.env['REPO_NAME'] + '/'
                         root += rn