Changeset - 2a57d3660003
[Not reviewed]
stable
0 1 0
Mads Kiilerich - 4 years ago 2021-06-10 14:20:08
mads@kiilerich.com
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.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
kallithea/model/scm.py
Show inline comments
 
@@ -713,6 +713,7 @@ class ScmModel(object):
 
                    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)
 

	
 

	
0 comments (0 inline, 0 general)