mercurial/statichttprepo.py
changeset 5313 121f961b358c
parent 4635 63b9d2deed48
child 5315 639935f2e63a
--- a/mercurial/statichttprepo.py
+++ b/mercurial/statichttprepo.py
@@ -33,7 +33,7 @@ class statichttprepository(localrepo.loc
         self._url = path
         self.ui = ui
 
-        self.path = (path + "/.hg")
+        self.path = path.rstrip('/') + "/.hg"
         self.opener = opener(self.path)
         # find requirements
         try: