gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Bug: At Least One User Commit On Top

Open notorioustig opened this issue 1 year ago • 1 comments

Version

0.16.7

Operating System

macOS

Distribution Method

dmg (Mac OS - Apple Silicon)

Describe the issue

I get this occasionally in my project and there is no way to clear it or address it. I'm not sure what to do with this. If I can't get this to go away, occasionally I'll have to remove my project and re-add my project, but then I have to re-connect my project to github which is annoying.

Image

How to reproduce (Optional)

  1. I'm not exactly sure how this happened
  2. I was just using only gitbutler for claude based development, I didn't make any changes anywhere else
  3. I occasionally get one of these errors that I can't dismiss about a random commit on top
  4. Sometimes I get this after pulling from github
  5. Sometimes I get this if I make a change from cursor outside of gitbutler
  6. But this time I didn't pull from github or use cursor

Also, I can't install the CLI from the settings, it straight up doesn't work, like nothing happens when I click the button. I attempted to create a symlink, so maybe that's working.

Expected behavior (Optional)

  1. I'd love to be able to dismiss the error.
  2. I'm not sure what the significance of the error is, does this prohibit me from anything?
  3. What are the steps to remediate the situation?
  4. Is remediation necessary?

Relevant log output (Optional)


notorioustig avatar Sep 27 '25 11:09 notorioustig

Thanks for reporting!

This bug is mine, and it seems the code relies on some array to never be empty, even though it actually can be empty. That's what the bug signals, and I will make this more robust right away.

With that said, I also don't know how this can happen, and what should be done in that situation, but I will investigate.

Also, I can't install the CLI from the settings, it straight up doesn't work, like nothing happens when I click the button. I attempted to create a symlink, so maybe that's working.

When clicking the button, it doesn't exactly show that it worked or give any feedback whatsoever. For me, at least the mousepointer changes briefly. In any case, if it did work, you should have the but program in your path, as a symlink to the application bundle's shipped binaries.

Byron avatar Sep 27 '25 12:09 Byron