Skip to content

Create MR with branch not properly working for release branch

Summary

Creating a merge request together with a branch fails for release branches.

Steps to reproduce

create-MR-with-branch-bug

Example Project

What is the current bug behavior?

Create merge request page not opened, MR and branch not created, no error message.

What is the expected correct behavior?

Open the "Create merge request" page

Relevant logs and/or screenshots

Output of checks

Results of GitLab environment info

Using Gitlab 15.8

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)

Possible fixes

Seems to be related to improper handling of the cache. If caching is disabled - it works. (see second part of the screen recording above)