diff --git a/pagure/hooks/files/default_hook.py b/pagure/hooks/files/default_hook.py index 964546f..0b3cf99 100644 --- a/pagure/hooks/files/default_hook.py +++ b/pagure/hooks/files/default_hook.py @@ -191,6 +191,7 @@ def run_as_post_receive_hook(): if not repo_obj.is_empty and not repo_obj.head_is_unborn: default_branch = repo_obj.head.shorthand + forced = False if set(newrev) == set(['0']): print("Deleting a reference/branch, so we won't run the " "pagure hook")