Changeset - 946d8a680a1d
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 15 years ago 2010-09-02 21:37:52
marcin@python-works.com
made fix for pushing/pulling into paths that end with /
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
pylons_app/lib/middleware/simplehg.py
Show inline comments
 
@@ -69,12 +69,14 @@ class SimpleHg(object):
 
                REMOTE_USER.update(environ, result)
 
            else:
 
                return result.wsgi_application(environ, start_response)
 
        
 
        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)
 
        
 
        #===================================================================
 
        # CHECK PERMISSIONS FOR THIS REQUEST
0 comments (0 inline, 0 general)