From fd5c2d62a3b2339b66ac5691786510f370671091 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Oct 01 2018 09:08:54 +0000 Subject: Correctly exempt default hook from running on non-main 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