File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -986,6 +986,12 @@ int bisect_next_all(const char *prefix)
986
986
exit (1 );
987
987
}
988
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
+
989
995
bisect_rev = revs .commits -> item -> object .sha1 ;
990
996
memcpy (bisect_rev_hex , sha1_to_hex (bisect_rev ), 41 );
991
997
Original file line number Diff line number Diff line change @@ -567,6 +567,11 @@ test_expect_success 'skipping away from skipped commit' '
567
567
test "$para3" = "$PARA_HASH3"
568
568
'
569
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
+
570
575
#
571
576
#
572
577
test_done
You can’t perform that action at this time.
0 commit comments