Merge branch 'cc/maint-bisect-paths' into maint-1.6.6
[gitweb.git] / bisect.c
index b779a9589aae28ed8e92ca64309fb62936480e9d..e4214c99093da5201e2f06b196a4fa64c684ce61 100644 (file)
--- 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);