# HG changeset patch # User Marcin Kuzminski # Date 1283456272 -7200 # Node ID 946d8a680a1dde94acedea17ff35f49fedd43b59 # Parent 0668919c307c0aa9de7f4befe189aad3783c6fbe made fix for pushing/pulling into paths that end with / diff -r 0668919c307c -r 946d8a680a1d pylons_app/lib/middleware/simplehg.py --- 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)