Mercurial > kallithea
comparison rhodecode/lib/middleware/simplegit.py @ 2407:8a68e0292232 beta
Change git & hg hooks to post. They shouldn't block as they are used just for logging actions. Futhermore post hooks have access to changesets, so it's much better flexible
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 06 Jun 2012 22:23:27 +0200 |
parents | 2eeb2ed72e55 |
children | 6af1e0d5ff9d |
comparison
equal
deleted
inserted
replaced
2406:7be31af5bc78 | 2407:8a68e0292232 |
---|---|
269 op = getattr(self, '_git_stored_op', 'pull') | 269 op = getattr(self, '_git_stored_op', 'pull') |
270 return op | 270 return op |
271 | 271 |
272 def _handle_githooks(self, repo_name, action, baseui, environ): | 272 def _handle_githooks(self, repo_name, action, baseui, environ): |
273 """ | 273 """ |
274 Handles pull action, push is handled by pre-receive hook | 274 Handles pull action, push is handled by post-receive hook |
275 """ | 275 """ |
276 from rhodecode.lib.hooks import log_pull_action | 276 from rhodecode.lib.hooks import log_pull_action |
277 service = environ['QUERY_STRING'].split('=') | 277 service = environ['QUERY_STRING'].split('=') |
278 if len(service) < 2: | 278 if len(service) < 2: |
279 return | 279 return |