Skip to content

Warning is displayed when trying to commit to any branch

Checklist

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

Screenshot_2024-09-02_at_09.44.05

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