gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

API error: (create_virtual_branch)

Open dennist12 opened this issue 1 year ago • 5 comments

Version

0.15.16

Operating System

Windows

Distribution Method

msi (Windows)

Describe the issue

can't create new branch after a merge

Image

How to reproduce (Optional)

No response

Expected behavior (Optional)

No response

Relevant log output (Optional)


dennist12 avatar Aug 29 '25 21:08 dennist12

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 +.

Byron avatar Aug 30 '25 09:08 Byron

Got same issue in Nightly build GitButler_Nightly_0.5.1498

Image Image

dennist12 avatar Aug 30 '25 16:08 dennist12

My fix is to copy the workspace to a new branch, then remove the gitbutler folder in .gitignore.

dennist12 avatar Aug 30 '25 18:08 dennist12

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.

Byron avatar Aug 30 '25 18:08 Byron

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 !

AnicetR avatar Sep 11 '25 07:09 AnicetR