Warning is displayed when trying to commit to any branch
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page) - Extension version: 5.14.0
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: 1.94.0
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: gitlab.com
Summary
In certain cases, VS Code will report every unprotected branch of a project as Protected, and issue a warning when trying to commit to it. (see #1543 (closed))
Steps to reproduce
Make a new GitLab project as a user, or open a GitLab project where the user has rights to push to every branch.
What is the current bug behavior?
Instead of marking none of the branches as Protected, it marks every branch as Protected (except for the default branch)
What is the expected correct behavior?
It should only mark a branch as Protected if the user has insufficient rights, and when the user has all rights it should not mark any branch.
Relevant logs and/or screenshots
This warning appears with the default settings when trying to commit.
Possible fixes
A workaround is to downgrade to version 5.13.0.
Edited by Lennard Sprong
