Skip to content

Commit 414b30f

Browse files
committed
Fix again
1 parent 385ab10 commit 414b30f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

website/static/js/page/contributor-guide/bisect-tool.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,14 @@ document.addEventListener("DOMContentLoaded", () => {
373373
targetIndex = startIndex - boundaryOffset;
374374
}
375375

376-
// If we've hit the oldest commit and it's already marked bad, we can't narrow further
376+
// If we've hit the oldest commit and it's still marked bad, we've exhausted history
377377
if (targetIndex <= 0 && badIndex === 0) {
378-
goodIndex = 0;
379378
showResult();
379+
// Override the result message — we never confirmed a good baseline, so we can't pinpoint the introducing commit
380+
if (elements.progressInfo) {
381+
const label = mode === "regression" ? "regression" : "feature";
382+
elements.progressInfo.innerHTML = `<em>The ${label} was already present in the oldest available commit</em>`;
383+
}
380384
return;
381385
}
382386

0 commit comments

Comments
 (0)