Hi
I am replicating certain branches from all of our non-AOSP projects to our mirror site
[remote "gerritmirror"]
url = gerrit2@gerritmirror001:/local/workarea/gerrit2/repositories/${name}.git/
push = +refs/meta/config:refs/meta/config
push = +refs/heads/work/*:refs/heads/work/*
push = +refs/heads/open/*:refs/heads/open/*
push = +refs/heads/customer/*:refs/heads/customer/*
push = +refs/tags/*:refs/tags/*
lockErrorMaxRetries = 3
threads = 3
replicationDelay = 10
and this is working fine. Now I need to replicate the AOSP to the mirror site as well. I am not sure if there is an order of precedence when it comes to branches and projects, so I was wondering if putting
projects = aosp/*
in the same remote section would then limit the replication to only the above branches in the AOSP projects, or would it still replicate all the above branches in every non-AOSP project plus all branches of the AOSP projects, or should the replication of the AOSP to the mirror site be it its own remote section, for example
[remote "gerritmirror"]
url = gerrit2@sgh-gerritmirror001:/local/workarea/gerrit2/repositories/${name}.git/
push = +refs/meta/config:refs/meta/config
push = +refs/heads/work/*:refs/heads/work/*
push = +refs/heads/open/*:refs/heads/open/*
push = +refs/heads/customer/*:refs/heads/customer/*
push = +refs/tags/*:refs/tags/*
lockErrorMaxRetries = 3
threads = 3
replicationDelay = 10
[remote "gerritmirror_AOSP"]
url = gerrit2@sgh-gerritmirror001:/local/workarea/gerrit2/repositories/${name}.git/
projects = aosp/*
lockErrorMaxRetries = 3
threads = 3
replicationDelay = 10
Thanks,
Clyde