# HG changeset patch # User Tony Bussieres # Date 2012-02-28 03:15:39 # Node ID 766696ee9487d761000a8fb511b451a4c4839756 # Parent 851ea1139169bf29dc1f57439e280db879a793aa let the is_git method exists so it is more similar to the hg backend. 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 @@ -82,6 +82,8 @@ log = logging.getLogger(__name__) GIT_PROTO_PAT = re.compile(r'git-upload-pack|git-receive-pack|info\/refs') +def is_git(action): + return action in ['pull','push'] class SimpleGit(BaseVCSController): @@ -91,7 +93,7 @@ class SimpleGit(BaseVCSController): #====================================================================== action = self.__get_action(environ) - if not action in ['pull','push']: + if not is_git(action): return self.application(environ, start_response) proxy_key = 'HTTP_X_REAL_IP'