From 67a085ba7d86e11ab5dac4c9223442473d0f1a05 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 25 Jul 2012 09:26:03 -0700 Subject: [PATCH] Set replication authGroup to Anonymous. Set the replication authGroup for github to Anonymous Users. Enable the "mirror" option which "will remove remote branches that absent locally or invisible to the replication (i.e. read access denied via authGroup option)." Disable replicatePermissions which will cause permissions-only projects and the refs/meta/config branch not to be replicated. I'm ambivalent about refs/meta/config, but disabling permissions-only projects will remove the periodic errors we get when trying to replicate All-Projects to github. Change-Id: I9c302b68e0a213d35683d7105341788923c5770a --- modules/gerrit/files/replication.config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gerrit/files/replication.config b/modules/gerrit/files/replication.config index a56b571756..91b51774fa 100644 --- a/modules/gerrit/files/replication.config +++ b/modules/gerrit/files/replication.config @@ -3,7 +3,9 @@ [remote "github"] url = git@github.com:${name}.git -authGroup = Registered Users +authGroup = Anonymous Users +replicatePermissions = false +mirror = true [remote "local"] url = file:///var/lib/git/${name}.git