Skip to content

Commit

Permalink
checkout: call the new submodule update test framework
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jens Lehmann authored and Junio C Hamano committed Jul 14, 2014
1 parent 42639d2 commit d78ecca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/t2013-checkout-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
test_description='checkout can handle submodules'

. ./test-lib.sh
. "$TEST_DIRECTORY"/lib-submodule-update.sh

test_expect_success 'setup' '
mkdir submodule &&
Expand Down Expand Up @@ -62,4 +63,8 @@ test_expect_success '"checkout <submodule>" honors submodule.*.ignore from .git/
! test -s actual
'

test_submodule_switch "git checkout"

test_submodule_forced_switch "git checkout -f"

test_done

0 comments on commit d78ecca

Please sign in to comment.