gitbutlerapp / gitbutler

The GitButler version control client, backed by Git, powered by Tauri/Rust/Svelte
https://gitbutler.com
Other
13.26k stars 528 forks source link

Un-applied virtual branch with default name is clobbered when creating a new virtual branch in workspace #5077

Open tdgrunenwald opened 1 month ago

tdgrunenwald commented 1 month ago

Steps to reproduce

  1. Create branch and leave the name as default "Virtual branch"
  2. make and commit some changes
  3. unapply the branch
  4. create a new virtual branch
  5. observe that old changes are lost

Version

0.12.27

Platform

Linux, AppImage

Byron commented 1 month ago

Thanks a lot for reporting - I could easily reproduce this dangerous issue.

It's notable that the oplog contains all the changes, so it's possible to revert to a previous, good state.

Screenshot 2024-10-10 at 07 32 05

Above it's also visible that it deleted the previous branch, before creating a new one with the same name.

CC @Caleb-T-Owens

tdgrunenwald commented 1 month ago

Thanks for noting the oplog. Let me know if there is any further information I can provide!