From: Alexandre Julliard Date: Sat, 8 Nov 2008 12:03:59 +0000 (+0100) Subject: checkout: Don't crash when switching away from an invalid branch. X-Git-Tag: v1.6.1-rc1~73^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/323e00fd46afb9293b25ee85f061ce11a2f95ca6?hp=323e00fd46afb9293b25ee85f061ce11a2f95ca6 checkout: Don't crash when switching away from an invalid branch. 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 Signed-off-by: Junio C Hamano ---