libgit2 / libgit2sharp

Git + .NET = ❤
http://libgit2.github.com
MIT License
3.15k stars 887 forks source link

Performing Delete or Push on a master branch or a protected branch doesn't throw any exception #1950

Open ali-bhutto opened 2 years ago

ali-bhutto commented 2 years ago

Reproduction steps

Perform Delete or Push on master or protected branch

Expected behavior

There should be an exception thrown of specific type

Actual behavior

Performing Delete or Push on a master branch or a protected branch doesn't throw any exception

Version of LibGit2Sharp (release number or SHA1)

0.27.0-preview-0175

Operating system(s) tested; .NET runtime tested

.NET6 Windows 10

ali-bhutto commented 2 years ago

Is there any update on this?