changeset 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 0668919c307c
children a0a93357f954
files pylons_app/lib/middleware/simplehg.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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)