checkout: Don't crash when switching away from an invalid branch.
authorAlexandre Julliard <julliard@winehq.org>
Sat, 8 Nov 2008 12:03:59 +0000 (13:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 Nov 2008 18:11:39 +0000 (10:11 -0800)
When using alternates, it is possible for HEAD to end up pointing to
an invalid commit. git checkout should be able to recover from that
situation without crashing.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found