Mercurial > kallithea
diff rhodecode/lib/middleware/simplegit.py @ 2100:f0649c7cf94a beta
fixed some unicode problems with waitress
- fixed clonning repos from non-ascii groups
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 04 Mar 2012 03:08:54 +0000 |
parents | 2632a49cb402 |
children | 8ecfed1d8f8b |
line wrap: on
line diff
--- a/rhodecode/lib/middleware/simplegit.py Sun Mar 04 03:01:02 2012 +0000 +++ b/rhodecode/lib/middleware/simplegit.py Sun Mar 04 03:08:54 2012 +0000 @@ -86,7 +86,9 @@ def is_git(environ): path_info = environ['PATH_INFO'] isgit_path = GIT_PROTO_PAT.match(path_info) - log.debug('is a git path %s pathinfo : %s' % (isgit_path, path_info)) + log.debug('pathinfo: %s detected as GIT %s' % ( + path_info, isgit_path != None) + ) return isgit_path @@ -121,7 +123,6 @@ #====================================================================== # CHECK ANONYMOUS PERMISSION #====================================================================== - if action in ['pull', 'push']: anonymous_user = self.__get_user('default') username = anonymous_user.username @@ -177,7 +178,7 @@ #=================================================================== # GIT REQUEST HANDLING #=================================================================== - repo_path = safe_str(os.path.join(self.basepath, repo_name)) + repo_path = os.path.join(safe_str(self.basepath), safe_str(repo_name)) log.debug('Repository path is %s' % repo_path) # quick check if that dir exists...