From fe4b1cf98e8bdd8b04e7f45cab752f4f4898f0e5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 20 2015 13:13:29 +0000 Subject: Make all repos accessible as read-only to everyone Fixes http://209.132.184.222/progit/issue/44 --- diff --git a/progit/lib.py b/progit/lib.py index 9e0a308..16caf10 100644 --- a/progit/lib.py +++ b/progit/lib.py @@ -900,6 +900,7 @@ def generate_gitolite_acls(session, configfile): config.append('repo forks/%s' % project.fullname) else: config.append('repo %s' % project.fullname) + config.append(' R = @all') config.append(' RW+ = %s' % project.user.user) for user in project.users: if user != project.user: @@ -907,6 +908,7 @@ def generate_gitolite_acls(session, configfile): config.append('') config.append('repo docs/%s' % project.fullname) + config.append(' R = @all') config.append(' RW+ = %s' % project.user.user) for user in project.users: if user != project.user: @@ -914,6 +916,7 @@ def generate_gitolite_acls(session, configfile): config.append('') config.append('repo tickets/%s' % project.fullname) + config.append(' R = @all') config.append(' RW+ = %s' % project.user.user) for user in project.users: if user != project.user: