changeset 8910:2a57d3660003 stable

git: show warning when removing existing unused Kallithea hook These hooks are no longer used and should be removed, but it is nice to have explicit logging when it happens.
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 10 Jun 2021 14:20:08 +0200
parents 98cbebff6afc
children 8ea5b8910d11
files kallithea/model/scm.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/model/scm.py	Thu Jun 10 12:25:32 2021 +0200
+++ b/kallithea/model/scm.py	Thu Jun 10 14:20:08 2021 +0200
@@ -713,6 +713,7 @@
                     log.error('error writing hook %s: %s', hook_file, e)
             elif h_type == 'pre-receive':  # no longer used, so just remove any existing Kallithea hook
                 if os.path.lexists(hook_file) and not other_hook:
+                    log.warning('removing existing unused Kallithea hook %s', hook_file)
                     os.remove(hook_file)