Re: [PATCH v2] Bisect reset: remove bisect refs that may have been packed.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 15, 2007, 08:34 UTC
- Message-ID
- <7vsl376h5w.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <7vwssj6hw8.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 15 quoted lines
> Christian Couder <chriscool@tuxfamily.org> writes: > >> 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 <chriscool@tuxfamily.org> > > 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.