Message ID | patch-v2-1.6-32c45bbf851-20230112T151651Z-avarab@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 7a8d7aaa47d952f255f29528359ee5e4edb7c6d2 |
Headers | show |
Series | bisect: follow-up fixes from js/bisect-in-c | expand |
diff --git a/builtin/bisect.c b/builtin/bisect.c index cc9483e8515..09505fc4dce 100644 --- a/builtin/bisect.c +++ b/builtin/bisect.c @@ -1440,12 +1440,5 @@ int cmd_bisect(int argc, const char **argv, const char *prefix) res = fn(argc, argv, prefix); } - /* - * Handle early success - * From check_merge_bases > check_good_are_ancestors_of_bad > bisect_next_all - */ - if ((res == BISECT_INTERNAL_SUCCESS_MERGE_BASE) || (res == BISECT_INTERNAL_SUCCESS_1ST_BAD_FOUND)) - res = BISECT_OK; - - return -res; + return is_bisect_success(res) ? 0 : -res; }