-
Notifications
You must be signed in to change notification settings - Fork 492
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
Project has a 'main' virtual branch that does not exist #4942
Comments
Thanks a lot for reporting! I would expect that the issue goes away if the Also, I am aware that GitButler can create its own virtual branches - in the moment there is a single change in the worktree it auto-creates a virtual branch to capture it. However, typically these actually exist afterwards. Maybe you could try to remove or rename the aforementioned file and see if it fixes the problem. It would be my guess that it's fixed initially and then re-occours. And when that happens, maybe we find a way to reproduce it here as well. Thanks a lot for your help. |
Deleting |
The other branch turned out to be a real branch in my repo that GitButler couldn't apply for some reason (the error was the same, "Failed to find branch"). Once I deleted that in the Git repo itself, it also disappeared from the GitButler UI. |
Now I'm in another weird state (I have no virtual branches) where clicking Update in the workspace generates the error "Failed to update workspace: Projects has active conflicts" even though there are no changes whatsoever... |
Deleting |
I think I found the culprit. There seems to be a |
Version
0.12.25 (20240912.103915)
Operating System
Mac OS X
Distribution Method
dmg (Apple Silicon)
Describe the issue
I have a project that has a local virtual branch called
main
and when I click on it I just get an error popup saying "Failed to find branch". I also have another private branch with a different name that behaves just the same.How to reproduce
No idea. If I remove the GitButler project and remove the
gitbutler/target
andgitbutler/workspace
branches manually and then add it back, I still have these broken virtual branches in GitButler.Expected behavior
They either shouldn't show up at all or it should be possible to delete them somehow.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: