API error: (create_virtual_branch)
Version
0.15.16
Operating System
Windows
Distribution Method
msi (Windows)
Describe the issue
can't create new branch after a merge
How to reproduce (Optional)
No response
Expected behavior (Optional)
No response
Relevant log output (Optional)
Thanks for reporting!
Despite having seen this before, I don't seem to be able to reproduce this issue now. Could you try it with the latest Nightly?
Meantime, the workaround is to first create the branch, and then commit into it, instead of doing it all in one with Commit to new branch +.
Got same issue in Nightly build GitButler_Nightly_0.5.1498
My fix is to copy the workspace to a new branch, then remove the gitbutler folder in .gitignore.
Oh wow, you aren't even using the Commit to new branch + button, but try to create a new independent branch in an otherwise empty workspace. It doesn't work. This I never encountered before, and it's quite critical as it would prevent you from meaningfully using the app.
Without a reproduction, I am afraid I have no idea how that could possibly happen. If you ever encounter it in a repository that you can share, please do share it.
I am experimenting a similar issue (same error message, similar situation)
Version 0.15.20
Operating System MacOS 5.1
Distribution Method apple Silicon dmg
Describe the issue:
Here is a graph that gives the whole context :
flowchart BT
%% Left lane
Target["🎯 Target Branch (dev)"]
Note["📝 Merge commits visible<br/>in Branch 1"]
subgraph GitButler
subgraph Stack["Applied Stack of Branches"]
direction TB
stacked["Stacked Branches can still be created"]
B1["Branch 1 (base)"]
B2["Branch 2"]
B3["Branch 3"]
end
Independent["Independent Branch<br/>(creation attempt)"]
end
%% Right lane
%% Real links
Target -- "Merge from GitHub<br/>(PR update + pull)" --> B1
B1 --> B2
B2 --> B3
B3 --> stacked
B1 --> Note
Independent -.->|API error:<br/> create_virtual_branch| Stack
Hope that helps !