Changeset - 3a54e1e121d5
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-07-12 16:54:46
marcin@python-works.com
fix http NotFound call in pygrack
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/middleware/pygrack.py
Show inline comments
 
@@ -185,18 +185,18 @@ class GitDirectory(object):
 
        self.username = username
 

	
 
    def __call__(self, environ, start_response):
 
        content_path = self.content_path
 
        try:
 
            app = GitRepository(self.repo_name, content_path, self.username)
 
        except (AssertionError, OSError):
 
            if os.path.isdir(os.path.join(content_path, '.git')):
 
                app = GitRepository(self.repo_name,
 
                                    os.path.join(content_path, '.git'),
 
                                    self.username)
 
            else:
 
                return exc.HTTPNotFound()(environ, start_response, self.username)
 
                return exc.HTTPNotFound()(environ, start_response)
 
        return app(environ, start_response)
 

	
 

	
 
def make_wsgi_app(repo_name, repo_root, username):
 
    return GitDirectory(repo_root, repo_name, username)
0 comments (0 inline, 0 general)