If a branch config contains duplicate variables (multivar), it may make git branchless sync exit with an error while attempting to remove the branch.
$ git sync --pull
[…]
The application panicked (crashed).
Message: A fatal error occurred:
0: could not delete branch: entry is not unique due to being a multivar; class=Config (7)
1: entry is not unique due to being a multivar; class=Config (7)
[…]
The error happens when attempting to remove a branch whose config looks like this:
Description of the bug
If a branch config contains duplicate variables (multivar), it may make
git branchless sync
exit with an error while attempting to remove the branch.The error happens when attempting to remove a branch whose config looks like this:
The core issue is located upstream²: https://github.com/libgit2/libgit2/issues/6722
Tracking
libgit2
libgit2
has been released with the fixgit2-rs
git2-rs
has been released with the fixExpected behavior
This should properly remove the branch which has been merged.
Actual behavior
git branchless sync
panics.Version of
rustc
No response
Automated bug report
No response
Version of
git-branchless
git-branchless-opts 0.8.0
Version of
git
git version 2.43.0