From f0edc7e0a03e77189956deb02f61ef4654bf6d56 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Oct 08 2018 13:59:14 +0000 Subject: Skip ACL checks during post-receive They are silly at this point: the repo is already updated, and it's too late to stop anyone anyway. Signed-off-by: Patrick Uiterwijk --- diff --git a/pagure/hooks/__init__.py b/pagure/hooks/__init__.py index da46304..365b3d5 100644 --- a/pagure/hooks/__init__.py +++ b/pagure/hooks/__init__.py @@ -309,6 +309,9 @@ def run_project_hooks( elif not authbackend.is_dynamic: if debug: print("Auth backend %s is static-only" % authbackend) + elif hooktype == "post-receive": + if debug: + print("Skipping auth backend during post-receive") else: if debug: print(