checkout: call the new submodule update test framework

Test that the checkout command updates the work tree as expected with and without the '-f' flag. Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jens Lehmann committed Jun 15, 2014 at 18:58 UTC d78ecca5206c65aff55573029b9fa2dd9c9cf4e1
1 file changed +5
t/t2013-checkout-submodule.sh
+5
@@ -3,6 +3,7 @@
3 test_description='checkout can handle submodules'
4
5 . ./test-lib.sh
6 +. "$TEST_DIRECTORY"/lib-submodule-update.sh
7
8 test_expect_success 'setup' '
9 mkdir submodule &&
@@ -62,4 +63,8 @@ test_expect_success '"checkout <submodule>" honors submodule.*.ignore from .git/
63 ! test -s actual
64 '
65
66 +test_submodule_switch "git checkout"
67 +
68 +test_submodule_forced_switch "git checkout -f"
69 +
70 test_done