Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creation of Merge Request in GitLab fails

I migrated my existing sources from Microsoft SourceSafe to GitLab.

Now I have two branches master and release.

I created a third branch feature off master and committed and pushed this branch.

Afterwards, I created a new merge request, which got accepted and merged feature into master without conflicts. Now I want to cherry-pick this merge request into release which is 15 commits behind and 12 commits ahead to master.

When creating this merge request, I get an error saying "Sorry, we cannot cherry-pick this merge request automatically.

This merge request may already have been cherry-picked, or a more recent commit may have updated some of its content." and no merge request is created. This merge request isn't already cherry-picked as it is the first cherry pick ever in this repository and there also isn't a more recent commit that updated this file.

Additionally, GitLab won't show any entries related to my error in the internal log.

merge request error message

I want GitLab to create a merge request and let me resolve possible conflicts in the web interface. Is this possible?

like image 459
MxNbrt Avatar asked Sep 20 '17 12:09

MxNbrt


People also ask

Why did GitLab pipeline fail?

A team's build environment or servers could have problems, causing a failed pipeline. That's a key reason why GitLab believes ephemeral builds are important, Brendan says. Ephemeral builds are reproducible meaning they're going to not be impacted because the server went down.

How do you create merge request for a branch in GitLab?

On the left menu, select Merge requests. In the top right, select New merge request. Select a source and target branch and then Compare branches and continue. Fill out the fields and select Create merge request.


1 Answers

Usually in this case, create a new branch for your release, cherry pick to that branch, and then push that up as a separate merge request.

That's how we handle our release process when our release and main diverge from each other. It gets really obvious when I go on one of my refactoring sprees minutes after we branch off release. :D

Because of how Git works and the acyclic graph, you can't just reuse a commit, you basically have to manually create an identical one and push them up since the previous commits of release differ than master.

like image 139
dmoonfire Avatar answered Oct 23 '22 21:10

dmoonfire