# HG changeset patch # User Marcin Kuzminski # Date 2019-09-22 15:51:13 # Node ID 04ab971e9538119bd671fc7c2cacde8bc05332ad # Parent 2a9f3cf98ef229ab79580d95cf7c11e2fce63a24 commits: disable shadow repo callback daemon diff --git a/rhodecode/lib/middleware/simplevcs.py b/rhodecode/lib/middleware/simplevcs.py --- a/rhodecode/lib/middleware/simplevcs.py +++ b/rhodecode/lib/middleware/simplevcs.py @@ -654,6 +654,9 @@ class SimpleVCS(object): raise NotImplementedError() def _should_use_callback_daemon(self, extras, environ, action): + if extras.get('is_shadow_repo'): + # we don't want to execute hooks, and callback daemon for shadow repos + return False return True def _prepare_callback_daemon(self, extras, environ, action, txn_id=None):