]> git.ipfire.org Git - thirdparty/git.git/blobdiff - worktree.c
Merge branch 'jc/orphan-unborn' into maint-2.43
[thirdparty/git.git] / worktree.c
index a56a6c2a3d136d31019520fdae68fc46c428194d..1399d452accaa3d0bdadd759c95fa7fd704f0a95 100644 (file)
@@ -395,9 +395,9 @@ int is_worktree_being_bisected(const struct worktree *wt,
 
        memset(&state, 0, sizeof(state));
        found_bisect = wt_status_check_bisect(wt, &state) &&
-                      state.branch &&
+                      state.bisecting_from &&
                       skip_prefix(target, "refs/heads/", &target) &&
-                      !strcmp(state.branch, target);
+                      !strcmp(state.bisecting_from, target);
        wt_status_state_free_buffers(&state);
        return found_bisect;
 }