We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e8a285e + 8f69f72 commit 7f43e75Copy full SHA for 7f43e75
2 files changed
bisect.c
@@ -986,6 +986,12 @@ int bisect_next_all(const char *prefix)
986
exit(1);
987
}
988
989
+ if (!all) {
990
+ fprintf(stderr, "No testable commit found.\n"
991
+ "Maybe you started with bad path parameters?\n");
992
+ exit(4);
993
+ }
994
+
995
bisect_rev = revs.commits->item->object.sha1;
996
memcpy(bisect_rev_hex, sha1_to_hex(bisect_rev), 41);
997
t/t6030-bisect-porcelain.sh
@@ -567,6 +567,11 @@ test_expect_success 'skipping away from skipped commit' '
567
test "$para3" = "$PARA_HASH3"
568
'
569
570
+test_expect_success 'erroring out when using bad path parameters' '
571
+ test_must_fail git bisect start $PARA_HASH7 $HASH1 -- foobar 2> error.txt &&
572
+ grep "bad path parameters" error.txt
573
+'
574
575
#
576
577
test_done
0 commit comments