diff --git a/rhodecode/lib/middleware/simplegit.py b/rhodecode/lib/middleware/simplegit.py --- a/rhodecode/lib/middleware/simplegit.py +++ b/rhodecode/lib/middleware/simplegit.py @@ -192,7 +192,7 @@ class SimpleGit(object): log.debug('Repository path is %s' % repo_path) # quick check if that dir exists... - if check_repo_fast(repo_name, self.basepath): + if check_repo_fast(repo_name, self.basepath) is False: return HTTPNotFound()(environ, start_response) try: diff --git a/rhodecode/lib/middleware/simplehg.py b/rhodecode/lib/middleware/simplehg.py --- a/rhodecode/lib/middleware/simplehg.py +++ b/rhodecode/lib/middleware/simplehg.py @@ -161,7 +161,7 @@ class SimpleHg(object): # quick check if that dir exists... - if check_repo_fast(repo_name, self.basepath): + if check_repo_fast(repo_name, self.basepath) is False: return HTTPNotFound()(environ, start_response) try: