# HG changeset patch # User Marcin Kuzminski # Date 2011-10-01 18:40:34 # Node ID 7865043e4ca902aeb5b80632462654ea2c01224a # Parent bb6ba7442293a81dc73fd70103139930ea69c286 fixed broken check_repo on middlewares 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: