Import repos rake-task doesn't respect default visibility level when creating groups
Summary
When creating groups on import, we do not respect the default visibility level set by Administrators
Steps to reproduce
- Set the default visibility level to private (
/admin/application_settings
) - Create a folder on the repository storage
new-group
- Create a repository in new group
new-group/new-repository.git
- Run the import task
rake gitlab:import:repos
- The group & repository are created public
What is the current bug behavior?
The group & repository are created with the wrong visibility level (public instead of private)
What is the expected correct behavior?
The import should create groups with the default visibility level set in GitLab
Reported in https://gitlab.zendesk.com/agent/tickets/81338 (Internal only)