t6030: test skipping away from an already skipped commit
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Christian Couder committed
Jun 6, 2009 at 06:41 UTC
a66037c9755a2beb49bbd915e6f0dd9b1a732925
1 file changed
+12
t/t6030-bisect-porcelain.sh
+12
@@ -555,6 +555,18 @@ test_expect_success 'restricting bisection on one dir and a file' '
555
grep "$PARA_HASH4 is first bad commit" my_bisect_log.txt
556
'
557
558
+test_expect_success 'skipping away from skipped commit' '
559
+ git bisect start $PARA_HASH7 $HASH1 &&
560
+ para4=$(git rev-parse --verify HEAD) &&
561
+ test "$para4" = "$PARA_HASH4" &&
562
+ git bisect skip &&
563
+ hash7=$(git rev-parse --verify HEAD) &&
564
+ test "$hash7" = "$HASH7" &&
565
+ git bisect skip &&
566
+ hash3=$(git rev-parse --verify HEAD) &&
567
+ test "$hash3" = "$HASH3"
568
+'
569
+
570
#
571
#
572
test_done