bisect: add test to check that revs are properly parsed
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Christian Couder committed
Dec 25, 2014 at 19:25 UTC
07913d5ae15d7f583a506ce991a6b88761e600e2
1 file changed
+9
t/t6030-bisect-porcelain.sh
+9
@@ -779,4 +779,13 @@ test_expect_success 'bisect log: only skip commits left' '
779
git bisect reset
780
'
781
782
+test_expect_success '"git bisect bad HEAD" behaves as "git bisect bad"' '
783
+ git checkout parallel &&
784
+ git bisect start HEAD $HASH1 &&
785
+ git bisect good HEAD &&
786
+ git bisect bad HEAD &&
787
+ test "$HASH6" = $(git rev-parse --verify HEAD) &&
788
+ git bisect reset
789
+'
790
+
791
test_done