3 test_description
='bisect can handle submodules'
5 TEST_PASSES_SANITIZE_LEAK
=true
7 .
"$TEST_DIRECTORY"/lib-submodule-update.sh
10 git status
-su >expect
&&
12 "$TAR" cf
"$TRASH_DIRECTORY/tmp.tar" * &&
13 GOOD
=$
(git rev-parse
--verify HEAD
) &&
14 may_only_be_test_must_fail
"$2" &&
15 $2 git checkout
"$1" &&
22 git commit
-m "bisect bad" &&
23 BAD
=$
(git rev-parse
--verify HEAD
) &&
24 git
reset --hard HEAD^^
&&
25 git submodule update
&&
27 git bisect good
$GOOD &&
29 "$TAR" xf
"$TRASH_DIRECTORY/tmp.tar" &&
30 git status
-su >actual
&&
32 test_cmp expect actual
&&
36 test_submodule_switch_func
"git_bisect"