add: error appropriately on repository with no commits
[gitweb.git] / builtin / bisect--helper.c
index 22e669e3b170f96c046a2aa4aa2c289a0599b6f0..e7325fe37f6148fd1ccd6fc5842bbc8f5022c306 100644 (file)
@@ -173,7 +173,7 @@ static int bisect_reset(const char *commit)
                        argv_array_clear(&argv);
                        return error(_("could not check out original"
                                       " HEAD '%s'. Try 'git bisect"
-                                      "reset <commit>'."), branch.buf);
+                                      " reset <commit>'."), branch.buf);
                }
                argv_array_clear(&argv);
        }
@@ -646,7 +646,7 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
                OPT_BOOL(0, "no-checkout", &no_checkout,
                         N_("update BISECT_HEAD instead of checking out the current commit")),
                OPT_BOOL(0, "no-log", &nolog,
-                        N_("no log for BISECT_WRITE ")),
+                        N_("no log for BISECT_WRITE")),
                OPT_END()
        };
        struct bisect_terms terms = { .term_good = NULL, .term_bad = NULL };
@@ -660,7 +660,7 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
 
        switch (cmdmode) {
        case NEXT_ALL:
-               return bisect_next_all(prefix, no_checkout);
+               return bisect_next_all(the_repository, prefix, no_checkout);
        case WRITE_TERMS:
                if (argc != 2)
                        return error(_("--write-terms requires two arguments"));