changeset 1506:7865043e4ca9 beta

fixed broken check_repo on middlewares
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 01 Oct 2011 21:40:34 +0300
parents bb6ba7442293
children 7d687ed11929
files rhodecode/lib/middleware/simplegit.py rhodecode/lib/middleware/simplehg.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/middleware/simplegit.py	Sat Oct 01 19:05:47 2011 +0300
+++ b/rhodecode/lib/middleware/simplegit.py	Sat Oct 01 21:40:34 2011 +0300
@@ -192,7 +192,7 @@
         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:
--- a/rhodecode/lib/middleware/simplehg.py	Sat Oct 01 19:05:47 2011 +0300
+++ b/rhodecode/lib/middleware/simplehg.py	Sat Oct 01 21:40:34 2011 +0300
@@ -161,7 +161,7 @@
         
 
         # 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: