I was able to repro the issue from https://github.com/arxanas/git-branchless/issues/1088. It seems that we are tracking the intermediate commits created by a rebase and adding them to the events db during the post rewrite hook. I noticed that this code was added to prevent aborted rebases from adding intermediate commits, but the test written for that still passes.
Fixes https://github.com/arxanas/git-branchless/issues/1088
This pull request copies the changes from https://github.com/arxanas/git-branchless/pull/1098 and addresses arxanas' comments.
I was able to repro the issue from https://github.com/arxanas/git-branchless/issues/1088. It seems that we are tracking the intermediate commits created by a rebase and adding them to the events db during the post rewrite hook. I noticed that this code was added to prevent aborted rebases from adding intermediate commits, but the test written for that still passes.