Commit 8269fe74 authored by Nick Thomas's avatar Nick Thomas

Merge branch 'master' into 'master'

Fixes main https://gitlab.com/gitlab-org/gitlab/-/issues/30430 by not creating detached head

Closes #30430

See merge request gitlab-org/gitlab!38044
parents 6b3a3d12 ba9fb625
......@@ -32,12 +32,12 @@
- if @merge_request.for_fork?
:preserve
git fetch origin
git checkout "origin/#{h @merge_request.target_branch}"
git checkout "#{h @merge_request.target_branch}"
git merge --no-ff "#{h @merge_request.source_project_path}-#{h @merge_request.source_branch}"
- else
:preserve
git fetch origin
git checkout "origin/#{h @merge_request.target_branch}"
git checkout "#{h @merge_request.target_branch}"
git merge --no-ff "#{h @merge_request.source_branch}"
%p
%strong Step 4.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment