3 test_description
='bisect can handle submodules'
6 .
"$TEST_DIRECTORY"/lib-submodule-update.sh
9 git status
-su >expect
&&
11 tar cf
"$TRASH_DIRECTORY/tmp.tar" * &&
12 GOOD
=$
(git rev-parse
--verify HEAD
) &&
13 may_only_be_test_must_fail
"$2" &&
14 $2 git checkout
"$1" &&
21 git commit
-m "bisect bad" &&
22 BAD
=$
(git rev-parse
--verify HEAD
) &&
23 git
reset --hard HEAD^^
&&
24 git submodule update
&&
26 git bisect good
$GOOD &&
28 tar xf
"$TRASH_DIRECTORY/tmp.tar" &&
29 git status
-su >actual
&&
31 test_cmp expect actual
&&
35 test_submodule_switch_func
"git_bisect"