Skip to content

Force initialise new repositories created by non-maintainers

As a Developper, I'm able to create new repositories in the gitlab-org Group.

However, if I don't select Initialize repository with a README at creation time, I'm then immediately blocked from using the new repository, this is the error message that happens on push:

remote: GitLab: 
remote: A default branch (e.g. master) does not yet exist for gitlab-org/charts/elastic-stack
remote: Ask a project Owner or Maintainer to create a default branch:
remote: 
remote:   https://gitlab.com/gitlab-org/charts/elastic-stack/-/project_members
remote: 
To gitlab.com:gitlab-org/charts/elastic-stack.git

Once a maintainer has pushed the first commit, I'm able to use the repository normally. Should we consider force-enabling the Initialize repository with a README checkbox for anyone below Maintainer level?