Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Public Project/Default Permissions with GitLab

I'm comparing Gitorious with Gitlab, and while there are many things I like about Gitlab, it has a very fundamental problem. For every new repository, the creator needs to manage who has access to that repository.

Our model is rather simple: if you have access to gitlab, you have access to most repositories. Only a few repositories would be closed off, and we don't even need them on gitlab. Gitorious support that model, but I haven't seen any way of doing that on gitlab.

Can it be done? If so, how?

like image 634
Daniel C. Sobral Avatar asked Aug 01 '12 19:08

Daniel C. Sobral


4 Answers

Public repositories are something the developers have been resistant to adding support for. They don't want to gitlab to be a github competitor. See https://github.com/gitlabhq/gitlabhq/issues/12

Team support is something that is still under development. Hopefully what your are requesting will be implemented at some point. See: https://github.com/gitlabhq/gitlabhq/issues/739

Until the better Team support gets implemented your best bet might be to use a script like: https://gist.github.com/1722391 to add users to all projects. This is the approach I'm currently using.

or use the new rake commands to bulk add users:

rake add_user_to_project_teams[email]  # Add user to as a developer to all projects
rake add_users_to_project_teams        # Add all users to all projects, system administrators are added as masters
like image 164
Jeff Shelman Avatar answered Oct 04 '22 15:10

Jeff Shelman


For Gitlab there are also two Rake tasks which can manage bulk adding of users to repositories:

rake add_user_to_project_teams[email]  # Add user to as a developer to all projects
rake add_users_to_project_teams        # Add all users to all projects, system administrators are added as masters
like image 25
morgents Avatar answered Oct 04 '22 17:10

morgents


A fork of Gitlab allowing public repositories has sprung up: https://github.com/ArthurHoaro/Public-GitLab

like image 37
Eric Schrijver Avatar answered Oct 04 '22 16:10

Eric Schrijver


Public projects have been allowed since GitLab 6.2.

Public projects were the most requested feature on the GitLab uservoice group, see http://gitlab.uservoice.com/forums/176466-general/suggestions/3159951-allow-public-repositories

like image 26
Sytse Sijbrandij Avatar answered Oct 04 '22 17:10

Sytse Sijbrandij