From d95ea09e10205b8fcf88e97470df19872b65bdb5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 19 2017 20:10:14 +0000 Subject: Warn users when a project does not support direct push Projects enforcing contributions via pull-request do not support direct push to their git repo (which is reflected in the gitolite.conf ACLs for this project). Fixes https://pagure.io/pagure/issue/2773 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html index 13c21fb..05284bf 100644 --- a/pagure/templates/repo_master.html +++ b/pagure/templates/repo_master.html @@ -351,6 +351,19 @@ {% endif %} + {% if authenticated and repo.settings.get('pull_request_access_only') %} +
+ +
+ {% endif %} {% block repo %} {% endblock %}