# HG changeset patch # User Marcin Kuzminski # Date 2013-01-31 00:37:38 # Node ID e351161b8734b25780eb35b0bf9107aaf85f2e76 # Parent a602611c49e7e7cadd8121efd89c9c8917884a4f 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)