Re: [PATCH] checkout: Don't crash when switching away from an invalid branch.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: Johannes Schindelin <Johannes.Schindelin@...>, <git@...>
Date: Saturday, November 8, 2008 - 6:07 am

Junio C Hamano <gitster@pobox.com> writes:


It turns out to be user error, that was a tree I hadn't used in a long
time and I didn't realize it was using alternates, so HEAD was pointing
to a commit that had been rebased and garbage-collected in the source
repository.

Most other commands die with a "bad object HEAD" in that situation, and
checkout could certainly do that too, but I think it's nicer to provide
an easy way of getting out of that broken state.  I'll resend an updated
patch.

-- 
Alexandre Julliard
julliard@winehq.org
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] checkout: Don't crash when switching away from an in..., Alexandre Julliard, (Fri Nov 7, 1:02 pm)
Re: [PATCH] checkout: Don't crash when switching away from a..., Johannes Schindelin, (Fri Nov 7, 2:05 pm)
Re: [PATCH] checkout: Don't crash when switching away from a..., Alexandre Julliard, (Fri Nov 7, 6:28 pm)
Re: [PATCH] checkout: Don't crash when switching away from a..., Alexandre Julliard, (Sat Nov 8, 6:07 am)