Show the mark of the last tested commit once a bisect is done

Once git has nothing left to test, the commit that the user marked last
stays the current commit. The commits view labels it "<-- current",
although git doesn't want the user to test it any more. Show its mark
instead, like for the other marked commits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Stefan Haller
2026-10-31 11:27:58 +01:00
co-authored by Claude Opus 5.5
parent 21569fa96f
commit ba05949879
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -357,7 +357,7 @@ func getBisectStatus(index int, commitHash string, bisectInfo *git_commands.Bise
return BisectStatusNone
}
if bisectInfo.GetCurrentHash() == commitHash {
if bisectInfo.HasCommitToTest() && bisectInfo.GetCurrentHash() == commitHash {
return BisectStatusCurrent
}
@@ -38,10 +38,7 @@ var SelectFirstBadCommit = NewIntegrationTest(NewIntegrationTestArgs{
Contains("CI commit-10"),
Contains("CI commit-09"),
Contains("CI commit-08").Contains("<-- bad").IsSelected(),
/* EXPECTED:
Contains("CI commit-07").Contains("<-- good"),
ACTUAL: */
Contains("CI commit-07").Contains("<-- current"),
Contains("CI commit-06"),
Contains("CI commit-05").Contains("<-- good"),
)