Mercurial > kallithea
comparison pylons_app/lib/middleware/simplehg.py @ 445:946d8a680a1d
made fix for pushing/pulling into paths that end with /
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 02 Sep 2010 21:37:52 +0200 |
parents | b27d32cb3157 |
children | 3d6d548ad3cc |
comparison
equal
deleted
inserted
replaced
444:0668919c307c | 445:946d8a680a1d |
---|---|
70 else: | 70 else: |
71 return result.wsgi_application(environ, start_response) | 71 return result.wsgi_application(environ, start_response) |
72 | 72 |
73 try: | 73 try: |
74 repo_name = '/'.join(environ['PATH_INFO'].split('/')[1:]) | 74 repo_name = '/'.join(environ['PATH_INFO'].split('/')[1:]) |
75 if repo_name.endswith('/'): | |
76 repo_name = repo_name.rstrip('/') | |
75 except: | 77 except: |
76 log.error(traceback.format_exc()) | 78 log.error(traceback.format_exc()) |
77 return HTTPInternalServerError()(environ, start_response) | 79 return HTTPInternalServerError()(environ, start_response) |
78 | 80 |
79 #=================================================================== | 81 #=================================================================== |