Junio C Hamano [off-list ref] writes:
Christian Couder [off-list ref] writes:
quoted
If refs were ever packed in the middle of bisection, the bisect
refs were not removed from the "packed-refs" file.
This patch fixes this problem by using "git update-ref -d $ref $hash"
in "bisect_clean_state".
Signed-off-by: Christian Couder <redacted>
Thanks. Just a few nits.
On top of your patch...
- You forgot to remove one "removal of filesystem refs";
Ooops. 'test -d "$GIT_DIR/refs/bisect"' is used as a signal
that we are bisecting for the rest of the code, so we cannot
lose that rm -fr there.
I think a longer term clean-up would be not to treat "bisect" as
a reserved branch name but use detached HEAD while bisecting.
But that is a larger topic.