From: Christian Couder Date: Fri, 05 Jun 2009 04:10:43 GMT Subject: [PATCH v2 3/3] t6030: test skipping away from an already skipped commit Message-ID: <20090605041044.8885.1948.chriscool@tuxfamily.org> In-Reply-To: <20090605040238.8885.92790.chriscool@tuxfamily.org> Signed-off-by: Christian Couder --- t/t6030-bisect-porcelain.sh | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh index 5254b23..4556cdd 100755 --- a/t/t6030-bisect-porcelain.sh +++ b/t/t6030-bisect-porcelain.sh @@ -555,6 +555,18 @@ test_expect_success 'restricting bisection on one dir and a file' ' grep "$PARA_HASH4 is first bad commit" my_bisect_log.txt ' +test_expect_success 'skipping away from skipped commit' ' + git bisect start $PARA_HASH7 $HASH1 && + para4=$(git rev-parse --verify HEAD) && + test "$para4" = "$PARA_HASH4" && + git bisect skip && + hash7=$(git rev-parse --verify HEAD) && + test "$hash7" = "$HASH7" && + git bisect skip && + hash3=$(git rev-parse --verify HEAD) && + test "$hash3" = "$HASH3" +' + # # test_done -- 1.6.3.GIT