Mercurial > kallithea
diff 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 |
line wrap: on
line diff
--- a/pylons_app/lib/middleware/simplehg.py Thu Sep 02 20:07:05 2010 +0200 +++ b/pylons_app/lib/middleware/simplehg.py Thu Sep 02 21:37:52 2010 +0200 @@ -72,6 +72,8 @@ try: repo_name = '/'.join(environ['PATH_INFO'].split('/')[1:]) + if repo_name.endswith('/'): + repo_name = repo_name.rstrip('/') except: log.error(traceback.format_exc()) return HTTPInternalServerError()(environ, start_response)