statichttprepo: fix calls on '/' URI (issue 747)
authorPaul Bx <pb@e-scribe.com>
Sat, 22 Sep 2007 18:37:35 +0200
changeset 5313 121f961b358c
parent 5307 5b0b0834419c
child 5314 598dae804a5f
statichttprepo: fix calls on '/' URI (issue 747)
mercurial/statichttprepo.py
--- 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: