t2020-checkout-detach: check for the number of orphaned commits
commitf94920993a0a1ba7916618e2ab458d5d4fb21e94
authorJohannes Sixt <j6t@kdbg.org>
Fri, 4 May 2012 18:13:14 +0000 (4 20:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 4 May 2012 19:42:25 +0000 (4 12:42 -0700)
tree0d0bff390e76b89ad2b57c568066b0b83d8ecf11
parente8dde3e5f9ddb7cf95a6ff3cea6cf07c3a2db80d
t2020-checkout-detach: check for the number of orphaned commits

Change the test that orphans commits to leave 2 commits behind. Add a test
that leaves only one of these behind.

The next patch will truncate the list of orphaned commits earlier. With
this preliminary update, its effect will become more obvious.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2020-checkout-detach.sh