diff mercurial/hgweb/hgweb_mod.py @ 4349:69109aa0cddd

Merge with stable
author Matt Mackall <mpm@selenic.com>
date Mon, 16 Apr 2007 09:52:37 -0500
parents c593e502f7fd b633f470944e
children e19d9b1223ee
line wrap: on
line diff
--- 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