X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=bisect.c;h=b556b11610480afd80cddd86a81af9737254ee36;hb=cc64c6970a0d50ecb75ba902d406bac7ea461f97;hp=6dc27ee7a6090e56d5b0f2072a72553d3b3e3b87;hpb=b10b9184afc9e62140d307dcf2f5d7e625f78c79;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);