Skip to content

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

  1. Add a deploy key to the project and allow writing permissions
  2. Open Allowed to push and merge selector in Protected Branches.
  3. You should be able to see the key.
  4. Click on the deploy key and close the selector
  5. Without the license you would see Failed to update branch! error
  6. With the license it allows you to save the key

Screenshots

Before update After update
Screenshot_2024-05-30_at_11.16.49 Screenshot_2024-05-30_at_11.16.59

More details