3 test_description='bisect can handle submodules'
6 . "$TEST_DIRECTORY"/lib-submodule-update.sh
9 git status -su >expect &&
11 tar czf "$TRASH_DIRECTORY/tmp.tgz" * &&
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 xzf "$TRASH_DIRECTORY/tmp.tgz" &&
24 git status -su >actual &&
26 test_cmp expect actual &&
30 test_submodule_switch "git_bisect"