问题
I have an existing Gitolite configuration with many users and repositories. It is setup in the default way as the Gitolite installation guide suggests. Now I would like to add GitLab to be able to do code reviews and bug tracking.
What's the most convenient way to achieve this?
回答1:
Original answer (January 2013)
You can follow the standard installation, and indicate in your gitlab.yml config file the location of your gitolite repo, as well as the gitolite admin user.
However, GitLab requires from the user to register themselves in GitLab and copy their public ssh key.
That means you might need to adapt the way gitolite has stored existing gitolite users, since the name you have used is likely to be different than the name used by GitLab (it uses a name based on the login_email_auuid
).
Update (August 2018, 5 years later):
As commented below by Thomas, a few months after this answer, GitLab released GitLab 5.0, without gitolite.
Now I would like to add GitLab to be able to do code reviews and bug tracking.
What's the most convenient way to achieve this?
These days (2018, GitLab 11.2.x), code review is supported through merge request (it has been so since a few years already).
See:
- "Demo: Mastering code review with GitLab" from Emily von Hoffmann,
- "Code Review Via GitLab Merge Requests" from Maxim Letushov.
来源:https://stackoverflow.com/questions/14523876/easy-way-to-setup-gitlab-with-existing-gitolite-configuration