git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] bisect: add test to check that revs are properly parsed
@ 2014-12-25 18:25 Christian Couder
  0 siblings, 0 replies; only message in thread
From: Christian Couder @ 2014-12-25 18:25 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Andreas Schwab

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 t/t6030-bisect-porcelain.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh
index 064f5ce..e6abe65 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
-- 
2.1.2.555.gfbecd99

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-25 18:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-25 18:25 [PATCH 2/2] bisect: add test to check that revs are properly parsed Christian Couder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).