# HG changeset patch # User Marcin Kuzminski # Date 2013-01-31 01:37:38 # Node ID 5440ea1d0628534a8e5c37508aa47bc71e9f2f97 # Parent eaa887c6c0af8f6a50f1a59dc295aa125659426e don't invalidate cache before handling hook 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 @@ -228,11 +228,10 @@ class SimpleGit(BaseVCSController): self.__inject_extras(repo_path, baseui, extras) try: + self._handle_githooks(repo_name, action, baseui, environ) # invalidate cache on push if action == 'push': self._invalidate_cache(repo_name) - self._handle_githooks(repo_name, action, baseui, environ) - log.info('%s action on GIT repo "%s" by "%s" from %s' % (action, repo_name, username, ip_addr)) app = self.__make_app(repo_name, repo_path, extras)