From 4329dfaa1101c1e7aaf82f6cef49fe859fadf110 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Oct 01 2018 10:00:37 +0000 Subject: Correctly exempt default hook from running on non-main Merges: #3788 Signed-off-by: Patrick Uiterwijk --- diff --git a/pagure/hooks/default.py b/pagure/hooks/default.py index 94d8623..0502080 100644 --- a/pagure/hooks/default.py +++ b/pagure/hooks/default.py @@ -235,7 +235,7 @@ class DefaultRunner(BaseRunner): if repotype != "main": if _config.get("HOOK_DEBUG", False): print("Default hook only runs on the main project repository") - return + return if changes: # Retrieve the default branch