-
Notifications
You must be signed in to change notification settings - Fork 533
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
Can't force push as long as a commit is different from the remote #5659
Comments
Thanks a lot for reporting! Is it correct that the issue is that the remote has a commit that isn't in the local branch, yet the UI offers to force push? |
The problem is that I just want to force push, but actually clicking the button doesn't respond |
However, force push will work when there are actual commits on the local branch, i.e., it's not a full fast forward. |
Thanks for the clarification. Could you see if there are any errors in the console of the UI ( Thanks again. |
there is no log in the console of the UI |
Thank you. I assume the file-based logs are empty as well? |
This problem is actually fairly easy to reproduce. Simply create a new branch, push a random commit, then uncommit and disard the changes and force push |
I followed these instructions and it did force-push which worked as expected. The only hope here is to find |
you can see my screen recording at https://wormhole.app/ezvAB#dsC83J41BayXE_kt8A8RXA |
Thank you, I have re-uploaded the video here for ease-of-use. 2024-11-26.10.23.49.movIt's interesting that the push seems to finish, without error, yet nothing happens. Note that the application logs are different from the console log in the UI, and there might be something else to see there. In theory, failures to push should show up visible in the UI, but maybe that's not working so the only hint will be in the application logs? |
It seems that there are only info-level logs |
Thank you - it really seems like the force-push goes through even though it has no effect on the UI. When repeating what i see in the video, it also just works. |
Version
0.13.17
Operating System
macOS
Distribution Method
dmg (Apple Silicon)
Describe the issue
If the virtual branch is not committed, but there is only one diff to the remote branch, you can't force a commit.
How to reproduce
No response
Expected behavior
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: