Under Gerrit, my project is named project1. I would like to replicate it to the server2 where path is /GitRepo/project2.
Is it possible to replicate project1 to another server where the project is named project2 (different from Gerrit name) ?
The configuration file bellow will replicate to /GitRepo/project2 and not /GitRepo/project1
[remote "server2"]
url = git@server2:/GitRepo/${name}
push = +refs/heads/*:refs/heads/*
push = +refs/tags/*:refs/tags/*
projects = project1
I need this because I am replicating all my git repo under following tree but they are all in same Gerrit instance.
They are not submodules but independant repository.
/GitRepo/
|
-- PROJ1
|
-- A
-- B
|
-- PROJ2
-- A (but different from PROJ1/A)
-- C