diff options
| -rw-r--r-- | sys/lib/python/hgext/hgwebfs.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/lib/python/hgext/hgwebfs.py b/sys/lib/python/hgext/hgwebfs.py index e8eb03cba..b18cb72b7 100644 --- a/sys/lib/python/hgext/hgwebfs.py +++ b/sys/lib/python/hgext/hgwebfs.py @@ -10,8 +10,11 @@ class Webconn: else: self.url = req.get_full_url() if self.url[0:5] == 'file:': + path = self.url[5:] + while path[0:2] == '//': + path = path[1:] self.dir = '/dev/null' - self.body = open(self.url[5:], 'r', 0) + self.body = open(path, 'r', 0) return ctl = open(mnt+'/clone', 'r+', 0) try: |
