Failed to update branch error for protected branches
Problem
When the GitLab instance does not have a license, the protected branches Allowed to push and merge
selector doesn't allow to select deploy keys.
Even if the deploy key was selected, it doesn't displayed on the UI. Instead users see a Failed to update branch error.
Steps to reproduce
- Add a deploy key to the project and allow writing permissions
- Open Allowed to push and merge selector in Protected Branches.
- You should be able to see the key.
- Click on the deploy key and close the selector
- Without the license you would see
Failed to update branch!
error - With the license it allows you to save the key
Screenshots
Before update | After update |
---|---|
![]() |
![]() |