dirigible
dirigible copied to clipboard
[Git] When pushing to protected branches, no error is shown
Describe the bug When you clone a repository which has a protected branch (main/master for example), make some changes and try to push them to the same branch, the Git perspective does not show an error. It behaves like the push was successful and you can lose your code because of this.
To Reproduce Steps to reproduce the behavior:
- Clone a repo with a protected main branch
- Make a change
- Try to commit and push from the Git perspective
- Go to the repo page and see that your commit is not pushed
Expected behavior If a branch is protected, you should see an error explaining the issue when you try to push any changes.
Desktop:
- OS: All
- Browser: All
- Version: Dirigible 10.3.0