-
-
Notifications
You must be signed in to change notification settings - Fork 609
ability to delete remote branch #838
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi thanks for tackling this. I have just added a few inline comments and I have one request: please add a unitest for the push
version that deletes an upstream branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow that was fast, just a few small improvements to make the test more readable
lgtm now! Thanks ❤️ |
I just tested the branch a bit and one thing that is a problem is:
it fails if you wanna delete a remote branch you don't have a local tracking branch for |
Interesting ! I'll look into it ! |
@zcorniere deleting a remote branch you do not have a local tracking branch for, this still crashes gitui.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still crashing, see above
Sorry, it worked on my end. Thanks for the log, I'm on it ! |
I'm not able to reproduce this behaviour, apologies :( |
@zcorniere ok I fixed that for you on master: 62ea1de |
@zcorniere thanks for you time and effort ❤️ |
it was a classic divide by zero because apparently libgit sends us a progress update of 0 progress of 0 total :D |
This MR aim to fix #622.
Please comment, and I will do my best to fix what's wrong.