Skip to content

Merge request with rebase option still performs merge when branch names match / Rebasing in GitLab 8.0

We're utilizing the option perform a rebase prior to merging on merge requests. We've run some tests and confirmed that, if the source and target branch names are the same, a traditional merge is performed.

Contrived example:

  1. We have two repos on our server: foobar/foobar and username/foobar
  2. Both repos have a branch my-branch
  3. A merge request is created and approved. Source: /username/foobar:my-branch Target: /foobar/foobar:my-branch
  4. Commit history shows a merge event, rather than a contiguous string of commits, per the rebase workflow, e.g. "Merge branch 'my-branch' into 'my-branch'"

This behavior occurs despite confirming that all the rebase options were enabled (globally and per merge request).

Edited by Sean Arnold