changeset 3277:5440ea1d0628 beta

don't invalidate cache before handling hook
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 31 Jan 2013 01:37:38 +0100
parents eaa887c6c0af
children c2bf0fa7b3cb
files rhodecode/lib/middleware/simplegit.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/middleware/simplegit.py	Wed Jan 30 22:30:52 2013 +0100
+++ b/rhodecode/lib/middleware/simplegit.py	Thu Jan 31 01:37:38 2013 +0100
@@ -228,11 +228,10 @@
         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)