Eliminate confusing "won't bisect on seeked tree" failure
commit0f497e75f05cdf0c0c1278eaba898cda6f118d71
authorCarl Worth <cworth@cworth.org>
Sun, 24 Feb 2008 01:14:17 +0000 (23 17:14 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Feb 2008 21:26:30 +0000 (27 13:26 -0800)
tree0ecf5e9861cd7164a86a418cfd7fb804fc059ed3
parent7a0a34ca6f31c6bb5d24ccc0cdab606736d7a322
Eliminate confusing "won't bisect on seeked tree" failure

This error message is very confusing---it doesn't tell the user
anything about how to fix the situation. And the actual fix
for the situation ("git bisect reset") does a checkout of a
potentially random branch, (compared to what the user wants to
be on for the bisect she is starting).

The simplest way to eliminate the confusion is to just make
"git bisect start" do the cleanup itself. There's no significant
loss of safety here since we already have a general safety in
the form of the reflog.

Note: We preserve the warning for any cogito users. We do this
by switching from .git/head-name to .git/BISECT_START for the
extra state, (which is a more descriptive name anyway).

Signed-off-by: Carl Worth <cworth@cworth.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-bisect.sh
t/t6030-bisect-porcelain.sh