Default branch incorrectly after creating project using gitlab custom project template
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Default branch incorrectly after creating project using gitlab custom project template
Steps to reproduce
- Create a group
Group-A
- Create a subgroup
Subgroup-B
forGroup-A
- Set Subgroup-B to the
Custom project templates
- Create a project
Project1
forSubgroup-B
- Create a new branch
Branch1
forProject1
and change the default branch toBranch1
- Create a new project
Project2
using custom project templateProject1
Example Project
What is the current bug behavior?
The default branch of Project2
is main
What is the expected correct behavior?
The default branch of Project2
should be Branch1
Relevant logs and/or screenshots
The test-template-test10
project is created by test10
template, but the default branch of test-template-test10
is different from the template test10
after creating .
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)