From ef1b1d1bc05895a800e53e436b86a98ea7cad3bf Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 28 2017 13:50:08 +0000 Subject: When forking a project, wait until the very end to let the user go through This fixes the case where the UI is up to date but gitolite is still being refreshed in the backend leading to the user not being able to access their project. Fixes https://pagure.io/pagure/issue/2353 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/lib/tasks.py b/pagure/lib/tasks.py index ed713da..6d838b8 100644 --- a/pagure/lib/tasks.py +++ b/pagure/lib/tasks.py @@ -314,8 +314,8 @@ def fork(name, namespace, user_owner, user_forker, editbranch, editfile): session.remove() del frepo + pagure.lib.git._generate_gitolite_acls() gc_clean() - generate_gitolite_acls.delay() if editfile is None: return ret('view_repo', repo=name, namespace=namespace,