Revert "checkout branch: prime cache-tree fully"
commit49d833dc07f28bf67119c4060044fc829a7e044f
authorJunio C Hamano <gitster@pobox.com>
Tue, 12 May 2009 16:41:28 +0000 (12 09:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 May 2009 16:57:21 +0000 (12 09:57 -0700)
treebf786d2235a8cdcf3c806f856832f56f4a65f96a
parent83ae209bf9708bf1b67dbac4a3629a0003af5dbb
Revert "checkout branch: prime cache-tree fully"

The logic in 83ae209 (checkout branch: prime cache-tree fully,
2009-04-20) is bogus; checkout can switch branches with a dirty
index and in such a case the tree won't match HEAD.

Add t2014-switch to catch this breakage.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c
t/t2014-switch.sh [new file with mode: 0755]