git submit
doesn't like it when commits have 2+ branches
#1131
Labels
git submit
doesn't like it when commits have 2+ branches
#1131
Description of the bug
git submit
behaves strangely when a commit has 2 branches pointing at it. From what I can tell, it just skips the commit entirely, though the implementation1 suggests that it may depend on the order in which the branches are processed bysubmit
.Repro:
This seems to also "work" if one of the branches is already pushed, and a new branch is added.
I haven't actually encountered this in the wild, but I ran into it while pushing some of my recent PRs, when I unstacked a bunch of commits and assigned them each a branch to push independently. I accidentally doubled up one of them ... et voila.
Expected behavior
I expect it push all branches, or all applicable branches is some but not all of them exist on the remote.
Actual behavior
The multi-branch commits are just skipped.
Version of
rustc
rustc 1.71.0 (8ede3aae2 2023-07-12)
Automated bug report
n/a
Version of
git-branchless
master
Version of
git
git version 2.41.0
Footnotes
https://github.com/arxanas/git-branchless/blob/master/git-branchless-submit/src/branch_forge.rs#L135-L183 ↩
The text was updated successfully, but these errors were encountered: