Skip to content

Branches do not get marked as merged

Summary

After a merge request is (edit1)merged, the corresponding graph is not marked as "merged" and also the branches graph does not show the branch as merged.

Steps to reproduce

Create a merge request with a branch. Commit something to that branch. Close the merge request. (Squash commits, do not delete the source branch)

Example Project

What is the current bug behavior?

After steps to reproduce:

Check for open branches - see the "merged" tag missing. Check branches graph view - see the merge request as merged, but not the branch.

What is the expected correct behavior?

Branch is shown as "merged" in list and graph view.

Actually merge requests should not be shown at all, except as transition from their branch to the target maybe.

Relevant logs and/or screenshots

Branch not marked as "merged"

image

Branch not shown as "merged" in graph

image

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)

Possible fixes

Edited by 🤖 GitLab Bot 🤖