From 05520eb622aac0f175a43e6ce7625ef2ba59ce7e Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Oct 05 2018 03:38:31 +0000 Subject: Make the pre-flight check ignore samples Signed-off-by: Patrick Uiterwijk --- diff --git a/pagure/lib/tasks.py b/pagure/lib/tasks.py index 66b2bc3..2f0edb7 100644 --- a/pagure/lib/tasks.py +++ b/pagure/lib/tasks.py @@ -650,6 +650,9 @@ def move_to_repospanner(self, session, name, namespace, user, region): ("pre-receive.", "update.", "post-receive.") ): continue + if hook.endswith(".sample"): + # Ignore the samples that Git inserts + continue hookfile = os.path.join(hookpath, hook) if os.path.realpath(hookfile) not in compatible_targets: incompatible_hooks.append((repotype, hook))