X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=bisect.c;h=b556b11610480afd80cddd86a81af9737254ee36;hb=fe72d420ab4dda593dddece7b907ee7868ced127;hp=6dc27ee7a6090e56d5b0f2072a72553d3b3e3b87;hpb=16735ae0f8a8e2df5e54807fd0a5930eb97dcb7a;p=git.git diff --git a/bisect.c b/bisect.c index 6dc27ee7a..b556b1161 100644 --- a/bisect.c +++ b/bisect.c @@ -986,6 +986,12 @@ int bisect_next_all(const char *prefix) exit(1); } + if (!all) { + fprintf(stderr, "No testable commit found.\n" + "Maybe you started with bad path parameters?\n"); + exit(4); + } + bisect_rev = revs.commits->item->object.sha1; memcpy(bisect_rev_hex, sha1_to_hex(bisect_rev), 41);