t6030: test skipping away from an already skipped commit
authorChristian Couder <chriscool@tuxfamily.org>
Sat, 6 Jun 2009 04:41:35 +0000 (06:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Jun 2009 18:26:56 +0000 (11:26 -0700)
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6030-bisect-porcelain.sh
index 5254b23512a411e911090cc0473bbbfd025df484..4556cdd8d2ac5d0b5c0e49d232de9923695ee540 100755 (executable)
@@ -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