projects created from template don't honor desired default branch name
Summary
projects created from template don't honor desired default branch name
Steps to reproduce
- click New project
- click Create from template
- click Use template (tested/found with Pages/Hugo)
Example Project
https://gitlab.com/jamin.collins/default-branch-issue
What is the current bug behavior?
Default branch of the newly created project uses a deprecated/insensitive name.
What is the expected correct behavior?
The default branch for the newly created project should follow the configured default. For self hosted installations, this should be the setting configured at:
Admin
-> Settings
-> Repository
-> Default initial branch name
For gitlab.com
, based on this article:
Phase 1 (GitLab.com): We plan to update GitLab's underlying Git version to 2.31.0 as part of GitLab’s 13.11 release, shipping on April 22, 2021. We will additionally change the default branch name on GitLab.com from master to main on May 24th, 2021.
main should be the default new branch for any newly created project.
Relevant logs and/or screenshots
N/A -- happens on GitLab.com as well
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
N/A -- happens on GitLab.com as well
Results of GitLab application Check
N/A -- happens on GitLab.com as well
Possible fixes
unknown