Hello,
Our Gerrit https://gerrit.wikimedia.org/
does replicate to https://github.com/wikimedia/
The configuration we have for GitHub:
The authGroup is a Gerrit group you have to create and does not need to have any member. We have made it not visible to register user. The sole purpose of this group is to be added to the repository you want to replicate by granting the group the Read permission on refs/tags/* and refs/heads/*. The default is to replicate everything to all remotes so I guess you are set.
Secondly we have disabled createMissingRepositories cause GitHub doesn't have the ssh Gerrit command to create a repository. If I understand it properly that is only possible when the destination is a Gerrit instance.
There is also adminUrl but it is also to create a repository on a Gerrit target.
Thus for Github replication, you have to manually create the repository. Since Gerrit keeps retrying the replication, it will eventually catch up and be able to push the references.
There should be a log file in $GERRIT_SITE/logs/replication_log
which is handy to find out what is happening.
-- Antoine "hashar" Musso Release Engineering
Hi
I followed the configuration you provided and to test it, i added my github repo to gerrit. \
I then cloned the repo into a workspace using git clone. Created a simple script, did a push and review and merged to gerrit master.
The script however still doesnt show up on github.
Here are the modified settings to the replication.config
[remote "GITHUB_USER"]
authGroup = Lekanswanson
createMissingRepositories = false
maxRetries = 50
push = refs/*:refs/*
url = https://g...@github.com:GITHUB_USER/${name}.git
remoteNameStyle = dash
replicatePermissions = false
rescheduleDelay = 15
projects = ^FinalTestRepo
I also created a group for Lekanswanson
The repositories already exist in git and github so im not sure what step im missing.
regards,
LA