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