From 98b5aa3c2cc6563e8afe8e34f11a82dbf1bee00d Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 18 2017 09:07:41 +0000 Subject: Clean the public_key in the DB when removing the mirroring hook This is needed since we also remove the files. --- diff --git a/pagure/hooks/mirror_hook.py b/pagure/hooks/mirror_hook.py index 9dd4e8e..5685d6a 100644 --- a/pagure/hooks/mirror_hook.py +++ b/pagure/hooks/mirror_hook.py @@ -314,3 +314,7 @@ class MirrorHook(BaseHook): repopaths = [get_repo_path(project)] cls.base_remove(repopaths, 'mirror') + + project.mirror_hook.public_key = None + SESSION.add(project) + SESSION.commit()