gitbutlerapp / gitbutler

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

Un- and re-applying a virtual branch does not save manually set branch name #4831

Open eproxus opened 1 month ago

eproxus commented 1 month ago

Version

0.12.23 (20240903.112227)

Operating System

Mac OS X

Distribution Method

dmg (Apple Silicon)

Describe the issue

Creating a virtual branch, setting a specific (different) branch name and pushing it, unapplying it and the pushing again will create a new branch with an auto-generated name instead of using the old set name.

How to reproduce

  1. Create a virtual branch (with a commit)
  2. Set a different remote branch name for it than the auto-generated one
  3. Push the branch
  4. Unapply the virtual branch
  5. Apply it again
  6. Note that the remote branch name is wrong (should be the manually set one, not auto generated)
  7. At this stage, if a push is performed a new duplicate branch will be pushed with the wrong name

Expected behavior

GitButler should remember the set branch name.

Relevant log output

No response

Byron commented 1 month ago

Thanks a lot for reporting!

Let me interpret @mtsgrd 'thumbs up' as 'reproduced' :).