-
- Downloads
Setting the GitLab default branch
The source of truth for the default GitLab branch is the HEAD of the Git repository. If we don't set it, then GitLab will, using a random branch of first push (unless maybe 'master' is among them). Further, it's much simpler and clearer to change from here than from the Rails application, because the latter is mostly meant to perform things like protecting the branch, and isn't really meant to set it to anything other that it's already seeing. For the Rails app, it'll just boil down to clear some caches if the situation looks like HEAD is prone to change (e.g the default branch maps to a topic).
Please register or sign in to comment