]>
git.ipfire.org Git - thirdparty/git.git/blob - t/t6041-bisect-submodule.sh
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
) &&
16 git commit
-m "bisect bad" &&
17 BAD
=$
(git rev-parse
--verify HEAD
) &&
18 git
reset --hard HEAD^^
&&
19 git submodule update
&&
21 git bisect good
$GOOD &&
23 tar xf
"$TRASH_DIRECTORY/tmp.tar" &&
24 git status
-su >actual
&&
26 test_cmp expect actual
&&
30 test_submodule_switch
"git_bisect"