Fix/update default branch after importing by gitlab custom project template
requested to merge gitlab-jh/jh-team/gitlab:fix/update-default-branch-after-importing-by-gitlab-custom-project-template into master
What does this MR do and why?
Describe in detail what your merge request does and why.
Fix #352811
Screenshots or screen recordings
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Create a group A
- Create a subgroup B for A
- Set B to the
Custom project templates
- Create a project P1 for B
- Create a new branch B1 for P1 and change the default branch to B1
- Create a new project P2 using custom project template P1
- The default branch of P2 is
main
which should beB1
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Zehua Zhang