mercurial/hgweb/webcommands.py
changeset 36737 250f3168d907
parent 36582 24897a9d18ac
child 36869 1a1972b1a1ff
--- a/mercurial/hgweb/webcommands.py	Sun Mar 04 13:03:22 2018 -0500
+++ b/mercurial/hgweb/webcommands.py	Sun Mar 04 13:04:12 2018 -0500
@@ -495,7 +495,7 @@
     dirs = {}
     parity = paritygen(web.stripecount)
 
-    if path and path[-1] != "/":
+    if path and path[-1:] != "/":
         path += "/"
     l = len(path)
     abspath = "/" + path