mercurial/hgweb/request.py
changeset 36896 b2a3308d6a21
parent 36878 ccb70a77f746
child 36897 d7fd203e36cc
equal deleted inserted replaced
36895:a5c478843c82 36896:b2a3308d6a21
   220     # has the concept of "virtual" repositories. This is defined via REPO_NAME.
   220     # has the concept of "virtual" repositories. This is defined via REPO_NAME.
   221     # If REPO_NAME is defined, we append it to SCRIPT_NAME to form a new app
   221     # If REPO_NAME is defined, we append it to SCRIPT_NAME to form a new app
   222     # root. We also exclude its path components from PATH_INFO when resolving
   222     # root. We also exclude its path components from PATH_INFO when resolving
   223     # the dispatch path.
   223     # the dispatch path.
   224 
   224 
   225     apppath = env['SCRIPT_NAME']
   225     apppath = env.get('SCRIPT_NAME', '')
   226 
   226 
   227     if env.get('REPO_NAME'):
   227     if env.get('REPO_NAME'):
   228         if not apppath.endswith('/'):
   228         if not apppath.endswith('/'):
   229             apppath += '/'
   229             apppath += '/'
   230 
   230