Changeset - 7865043e4ca9
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 14 years ago 2011-10-01 20:40:34
marcin@python-works.com
fixed broken check_repo on middlewares
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/middleware/simplegit.py
Show inline comments
 
@@ -189,13 +189,13 @@ class SimpleGit(object):
 
        #===================================================================
 

	
 
        repo_path = safe_str(os.path.join(self.basepath, repo_name))
 
        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:
 
            #invalidate cache on push
 
            if action == 'push':
 
                self.__invalidate_cache(repo_name)
rhodecode/lib/middleware/simplehg.py
Show inline comments
 
@@ -158,13 +158,13 @@ class SimpleHg(object):
 
        
 
        baseui = make_ui('db')
 
        self.__inject_extras(repo_path, baseui, extras)
 
        
 

	
 
        # 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:
 
            #invalidate cache on push
 
            if action == 'push':
 
                self.__invalidate_cache(repo_name)
0 comments (0 inline, 0 general)