aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2013-01-31 01:37:38 +0100
committerMarcin Kuzminski <marcin@python-works.com>2013-01-31 01:37:38 +0100
commit6d232d4bede276b2483af8ee575bda30823e1146 (patch)
tree6a48304ae5dc4c5eab47e83923473cb4c3ce36c7
parent462b611357cce37c7cb8de0c3a1235138345e01a (diff)
don't invalidate cache before handling hook
--HG-- extra : source : 5440ea1d0628534a8e5c37508aa47bc71e9f2f97
-rw-r--r--rhodecode/lib/middleware/simplegit.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/rhodecode/lib/middleware/simplegit.py b/rhodecode/lib/middleware/simplegit.py
index e35f95ae..32068140 100644
--- 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)