# HG changeset patch # User Mads Kiilerich # Date 2020-11-20 16:11:55 # Node ID c6b4788337b540ea94c61d64c0db73bab030601e # Parent 52816813cbecd4ac6bb1d99e10c1a7fadacbc734 repo-scan: overwrite_git_hooks also implies install_git_hooks (Otherwise, we should probably report an error when ignoring it.) diff --git a/kallithea/lib/utils.py b/kallithea/lib/utils.py --- a/kallithea/lib/utils.py +++ b/kallithea/lib/utils.py @@ -434,7 +434,7 @@ def repo2db_mapper(initial_repo_dict, re log.debug('Running update server info') git_repo._update_server_info() new_repo.update_changeset_cache() - elif install_git_hooks: + elif install_git_hooks or overwrite_git_hooks: if db_repo.repo_type == 'git': ScmModel().install_git_hooks(db_repo.scm_instance, force=overwrite_git_hooks)