Skip to content

Fix remove_source_branch merge request API handling

Stan Hu requested to merge sh-fix-merge-requests-api-remove-branch-param into master

Users attempting to set merge requests to remove_source_branch to false would encounter an Error 500 because the UpdateService and API checked present?, which would always return false. We now just use has_key? to decide whether the parameter is present.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/60530

Edited by Stan Hu

Merge request reports