For creation see 1434
Given that a Tuleap repo was just transformed to a Gerrit repo
= A hook is set up on Gerrit to push to the tuleap repo, on every change =
Given I transform the repo Firefox/mobile to a gerrit repo
Then a hook is deployed to gerrit.tuleap.net so that updates to
| refs/heads/* |
| refs/changes/* |
| refs/tags/* |
are pushed Firefox/mobile
= All activity in Gerrit is visible in the Tuleap repo =
Given I submit a patch to Gerrit to refs/for/master
And Gerrit assigns that to refs/changes/71/1
When I browse the commits in Tuleap I can see the commits to the branch refs/changes/71/1
= Gerrit replication =
As an alternative, we could use gerrit replication.
So far it's a plugin for gerrit 2.5 and requires a build of the package (not distributed):
https://groups.google.com/d/topic/repo-discuss/n6u1xEjFGxU/discussion
-> in any cases, it requires a specific gerrit configuration to works.
= Fetch gerrit content on Tuleap side =
On Tuleap
$> git remote add gerrit "ext::ssh -p 29418 -i $HOME/.ssh/id_rsa-gerrit
admin-shunt.cro.enalean.com@gerrit-shunt.cro.enalean.com %S shunt.cro.enalean.com-gerrit-devs/funky"
$> git fetch gerrit -q
$> git update-ref refs/heads/master refs/remotes/gerrit/master
Reference:
http://stackoverflow.com/questions/5559321/fetch-all-in-a-git-bare-repository-doesnt-synchronize-local-branches-to-the/5559586#5559586
Alternative with gitolite v3:
https://github.com/sitaramc/gitolite/blob/master/src/triggers/upstream
-> what about Tuleap specific things
--> Extract of references, email notification, CI trigger