gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Unapplying local branch removes from Branches List

Open Ebsan opened this issue 7 months ago • 3 comments

Version

0.14.19

Operating System

macOS

Distribution Method

dmg (Mac OS - Apple Silicon)

Describe the issue

When I unapply a branch it shows up on the list of branches. However, when I create a new lane that unapplied branch disappears. The branch is still there in the git graph but it's not showing up in GitButler for some reason. Restarting the app seems to fix this issue but it's sporadic.

Here is my git history. Both "terraform-x" branches were unapplied. Image

Here is the gitbutler screen after restarting the app: Image

How to reproduce (Optional)

No response

Expected behavior (Optional)

No response

Relevant log output (Optional)


Ebsan avatar May 03 '25 12:05 Ebsan

Thanks a lot for reporting!

Do you mean the restarting the app fixes the issues sometimes? Or is it the issue itself that only occurs sometimes?

With that said, the issue isn't easily reproducible for me neither on Version 0.5.1199 (20250503.035046) nor on Version 0.14.19 (20250428.160452).

Is there anything else you can share to help reproducing the issue? There can be an empty repository with just the right state to reproduce it, that can also be shared here?

Thanks again.

Byron avatar May 03 '25 12:05 Byron

Sure thing! I've created a barebones repo at https://github.com/Ebsan/test-gb-issue. I also recorded a video in case you can't reproduce from that repo.

Video: https://youtu.be/sEZLlCnVaxc

Ebsan avatar May 03 '25 13:05 Ebsan

Thanks for the video!

The missing piece seems to have been the final creation of another branch, which makes the previously unapplied branch disappear or, as it 'feels', rename itself to something else.

Fortunately, this is nothing I could reproduce in the upcoming major release, but in case there could be an obvious and easy fix for V2 let me CC @krlvi.

Byron avatar May 04 '25 19:05 Byron

Hi I'm encountering the same issue on V3 (0.15.1, macOS Sequoia 15.5)

I can see the branch in Gitkraken: Image

But not in GitButler Image

As you said it's quite hard to reproduce (I actually don't know how). The only insight I have is that I've already encountered this issue in the past always with "old" lanes, which I have unapplied from my workspace and haven't touched for several days or weeks

Nothing urgent, you're doing a fantastic work guys and I've been very pleased working with gitbutler so far, thanks!

EDIT: I restarted Gitbutler today and the branch reappeared, which is weird because I restarted yesterday as well without any result

Nicoowr avatar Jul 07 '25 16:07 Nicoowr

I am experiencing the same issue. Restarting does not resolve it. Version 0.16.1 (0.16.1) or Nightly Version 0.5.1534 (0.5.1534)

stijnvanderlaan avatar Sep 15 '25 12:09 stijnvanderlaan