Merge request shows "Remove source branch" for protected branches
Summary
On the merge UI, "Remove source branch" checkbox is displayed for "protected branches". However, merging does not delete the protected branch.
Steps to reproduce
- Create a protected branch
- Commit some changes to this branch
- Create a merge request and proceed to merging it
- Notice that "Remove source branch" checkbox is present and checked.
What is the current bug behavior?
- "Remove source branch" checkbox is present and checked.
- Merging does not delete protected branch.
What is the expected correct behavior?
"Remove source branch" checkbox should not be present for protected branches.