···317317 bad_commit=$(git show-branch $bad_rev)
318318 echo "# first bad commit: $bad_commit" >>"$GIT_DIR/BISECT_LOG"
319319 exit 0
320320+ elif test $res -eq 2
321321+ then
322322+ echo "# only skipped commits left to test" >>"$GIT_DIR/BISECT_LOG"
323323+ good_revs=$(git for-each-ref --format="--not %(objectname)" "refs/bisect/good-*")
324324+ for skipped in $(git rev-list refs/bisect/bad $good_revs)
325325+ do
326326+ skipped_commit=$(git show-branch $skipped)
327327+ echo "# possible first bad commit: $skipped_commit" >>"$GIT_DIR/BISECT_LOG"
328328+ done
329329+ exit $res
320330 fi
321331322332 # Check for an error in the bisection process
+20
t/t6030-bisect-porcelain.sh
···759759 git bisect reset
760760'
761761762762+cat > expected.bisect-skip-log <<EOF
763763+# bad: [32a594a3fdac2d57cf6d02987e30eec68511498c] Add <4: Ciao for now> into <hello>.
764764+# good: [7b7f204a749c3125d5224ed61ea2ae1187ad046f] Add <2: A new day for git> into <hello>.
765765+git bisect start '32a594a3fdac2d57cf6d02987e30eec68511498c' '7b7f204a749c3125d5224ed61ea2ae1187ad046f'
766766+# skip: [3de952f2416b6084f557ec417709eac740c6818c] Add <3: Another new day for git> into <hello>.
767767+git bisect skip 3de952f2416b6084f557ec417709eac740c6818c
768768+# only skipped commits left to test
769769+# possible first bad commit: [32a594a3fdac2d57cf6d02987e30eec68511498c] Add <4: Ciao for now> into <hello>.
770770+# possible first bad commit: [3de952f2416b6084f557ec417709eac740c6818c] Add <3: Another new day for git> into <hello>.
771771+EOF
772772+773773+test_expect_success 'bisect log: only skip commits left' '
774774+ git bisect reset &&
775775+ git bisect start $HASH4 $HASH2 &&
776776+ test_must_fail git bisect skip &&
777777+ git bisect log >bisect-skip-log.txt &&
778778+ test_cmp expected.bisect-skip-log bisect-skip-log.txt &&
779779+ git bisect reset
780780+'
781781+762782test_done