Code

checkout: add basic tests for detached-orphan warning
authorJeff King <peff@peff.net>
Sun, 20 Mar 2011 09:04:16 +0000 (05:04 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 Mar 2011 20:32:44 +0000 (13:32 -0700)
commit493dd6ed5b46659d7e20aaef00f97e279ce1c4cb
tree63a0e865f31c578d76fcc9b12884100dae5d8c3d
parenta91df69cbb5ced7837525106ff57ff349180770b
checkout: add basic tests for detached-orphan warning

Commit 8e2dc6ac added a warning when we leave a detached
HEAD whose commit is not reachable from any ref tip. Let's
add a few basic tests to make sure it works.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2020-checkout-detach.sh