summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2014-12-25 19:25:33 +0100
committerJunio C Hamano <gitster@pobox.com>2014-12-29 11:34:05 -0800
commit07913d5ae15d7f583a506ce991a6b88761e600e2 (patch)
treea29c3e006b1135b83cf2e2925005b3ccdcf05e8f
parent6bc02d5627358f6a264c5dbb159b5a9aeb44ebf4 (diff)
downloadgit-cc/bisect-rev-parsing.tar.gz
bisect: add test to check that revs are properly parsedcc/bisect-rev-parsing
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t6030-bisect-porcelain.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh
index 064f5cefeb..e6abe65d5c 100755
--- a/t/t6030-bisect-porcelain.sh
+++ b/t/t6030-bisect-porcelain.sh
@@ -779,4 +779,13 @@ test_expect_success 'bisect log: only skip commits left' '
git bisect reset
'
+test_expect_success '"git bisect bad HEAD" behaves as "git bisect bad"' '
+ git checkout parallel &&
+ git bisect start HEAD $HASH1 &&
+ git bisect good HEAD &&
+ git bisect bad HEAD &&
+ test "$HASH6" = $(git rev-parse --verify HEAD) &&
+ git bisect reset
+'
+
test_done