gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Can't appy branch, gitbutler just says "apply from fork"

Open ionTea opened this issue 7 months ago • 5 comments

Version

0.14.9

Operating System

macOS

Distribution Method

dmg (Mac OS - Apple Silicon)

Describe the issue

For some reason I can't apply a branch to my workspace. I have it in a PR, and I can switch to the branch locally using git.

Screen shots
Image
Image
Image

How to reproduce (Optional)

No idea

Expected behavior (Optional)

No response

Relevant log output (Optional)


ionTea avatar Apr 29 '25 13:04 ionTea

Thanks a lot for reporting!

It seems that GitButler assumes that edits are going to be made, and to push them, one would have to push into a fork (typically). Currently there is no notion of 'checkout' or 'switch'.

However, we are working towards a world where gitbutler/workspace isn't required, and where one is able to actually checkout a branch (without adding it to the workspace).

Byron avatar Apr 29 '25 17:04 Byron

I don't understand, this is just a regular branch like any other, and I just want to apply it to my working space.

As I showed in a screen shot, I can switch to the branch just fine using regular git in the command line, but gitbutler doesn't even list the branch. Something is weird here 🤷 What logs do you need to investigate this?

Image

ionTea avatar May 05 '25 09:05 ionTea

I don't think logs would show anything here.

It seems GitButler doesn't match more than the branch-name part, without the remote name. Image Image

So looking for setup-teams-landing-page should make the branch show up - from there it should be possible to add it to the workspace.

If that still doesn't work, there is probably some filtering logic at play that decides to hide the branch nonetheless. Thanks again for trying this out.

Byron avatar May 05 '25 11:05 Byron

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​sanity/​react-loader@​1.10.6 ⏵ 1.11.22100 +1100100 +2100 +1100

View full report

ionTea avatar May 06 '25 12:05 ionTea

I see, thanks for trying. I hope with the next major version this will be a none-issue though.

Byron avatar May 06 '25 20:05 Byron