New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeleteUnusedBranches plugin: Fix branch deletion #10663
DeleteUnusedBranches plugin: Fix branch deletion #10663
Conversation
Remove a duplicated git command run that will always return an exit code different than 0 (because the 1st command already deleted it) because the plugin doesn't handle well exception thrown when exit code is not zero (new development done in v4.0 where exception is thrown by default) Fixes gitextensions#10662
@RussKie @maraf @mstv @gerhardol FYI, the retrieve of the "plugin manager" in Download-PluginManager.ps1 during the build exceed the GitHub api rate limits and so break all the last builds (for example: https://ci.appveyor.com/project/gitextensions/gitextensions/builds/45996325 ) |
You need to wait a little, then it'll work.
|
I installed updated version but it is not fixed. It is the same behavior. It does not delete any branch. Environment info just for sure.
|
You sure you started the correct version? I run the portable and the fix did work just fine. 👍 |
@matthiaslischka So, can you do the code review and approve the PR?
As I wrote in the PR description, any bad exit code, because the plug-in does not handle the exception well, could end up with this state instead of providing feedback to the user. If you are working with this plug-in @matthiaslischka, could you have a look at that? |
Remove a duplicated git delete command run that will always return an exit code different than 0 (because the 1st command already deleted the branch)
because the plugin doesn't handle well exception thrown when exit code is not zero (new development done in v4.0 where exception is thrown by default)
Fixes #10662
Screenshots
Test methodology
Test environment(s)
Merge strategy
I agree that the maintainer squash merge this PR (if the commit message is clear).
✒️ I contribute this code under The Developer Certificate of Origin.