Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/hgweb_mod.py @ 32004:bd3cb917761a
hgwebdir: allow a repository to be hosted at "/"
This can be useful in general, but will also be useful for hosting subrepos,
with the main repo at /.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 31 Mar 2017 23:00:41 -0400 |
parents | d7bf7d2bd5ab |
children | eede022fc142 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Fri Apr 14 00:03:30 2017 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Fri Mar 31 23:00:41 2017 -0400 @@ -335,7 +335,7 @@ req.url = req.env['SCRIPT_NAME'] if not req.url.endswith('/'): req.url += '/' - if 'REPO_NAME' in req.env: + if req.env.get('REPO_NAME'): req.url += req.env['REPO_NAME'] + '/' if 'PATH_INFO' in req.env: