# HG changeset patch # User Marcin Kuzminski # Date 2010-09-02 19:37:52 # Node ID 946d8a680a1dde94acedea17ff35f49fedd43b59 # Parent 0668919c307c0aa9de7f4befe189aad3783c6fbe made fix for pushing/pulling into paths that end with / diff --git a/pylons_app/lib/middleware/simplehg.py b/pylons_app/lib/middleware/simplehg.py --- a/pylons_app/lib/middleware/simplehg.py +++ b/pylons_app/lib/middleware/simplehg.py @@ -72,6 +72,8 @@ class SimpleHg(object): 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)