How to setup gitolite and gerrit on separate ubunt

2019-09-09 21:03发布

问题:

I would like to setup gitolite on one ubuntu server. This gitolite is used to host git repositories. I would like to setup gerrit on different ubuntu server and it uses git repositories hosted on gitolite server. Is it possible? If yes, please provide setup steps.

回答1:

It should be possible if the Gitolite server shares the repositories via e.g. NFS to the Gerrit server. Gerrit needs to "own" the repositories by accessing them through a mounted file system.

But why would you want to do this? Running two repository managers seems like asking for trouble. If you don't want to use Gerrit's code review features everywhere or all of the time that's fine; Gerrit can be configured to allow direct pushes that bypass the code review step.