1. Fleppie
  2. RhodeCode


codingtony  committed 766696e

let the is_git method exists so it is more similar to the hg backend.

  • Participants
  • Parent commits 851ea11
  • Branches beta

Comments (0)

Files changed (1)

File rhodecode/lib/middleware/simplegit.py

View file
 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):
         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'