comparison rhodecode/lib/middleware/simplegit.py @ 1813:a8c66e870bd0 beta

implements #285: Implemented non changeable urls for clone url, and web views
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 29 Dec 2011 00:01:05 +0200
parents b265be1c6093
children cf51bbfb120e
comparison
equal deleted inserted replaced
1812:320dec24fb9a 1813:a8c66e870bd0
215 Get's repository name out of PATH_INFO header 215 Get's repository name out of PATH_INFO header
216 216
217 :param environ: environ where PATH_INFO is stored 217 :param environ: environ where PATH_INFO is stored
218 """ 218 """
219 try: 219 try:
220 environ['PATH_INFO'] = self._get_by_id(environ['PATH_INFO'])
220 repo_name = '/'.join(environ['PATH_INFO'].split('/')[1:]) 221 repo_name = '/'.join(environ['PATH_INFO'].split('/')[1:])
221 if repo_name.endswith('/'): 222 if repo_name.endswith('/'):
222 repo_name = repo_name.rstrip('/') 223 repo_name = repo_name.rstrip('/')
223 except: 224 except:
224 log.error(traceback.format_exc()) 225 log.error(traceback.format_exc())