Skip to content

fix: checkout out commits fails during bisect - #5157

Closed
majiayu000 wants to merge 1 commit into
jesseduffield:masterfrom
majiayu000:fix-5105-checkout-out-commits-fails-dur-0102-0049
Closed

fix: checkout out commits fails during bisect#5157
majiayu000 wants to merge 1 commit into
jesseduffield:masterfrom
majiayu000:fix-5105-checkout-out-commits-fails-dur-0102-0049

Conversation

@majiayu000

Copy link
Copy Markdown
Contributor

Fixes #5105

Changes

  • Use HEAD instead of BISECT_EXPECTED_REV content to show current commit during bisect
  • Added integration test for checkout during bisect

Previously, during git bisect, the '<-- current' marker was based on
the BISECT_EXPECTED_REV file, which represents where git bisect expects
you to be. If the user manually checked out a different commit during
bisect, the UI would still show the bisect-expected commit as current,
making it appear as if the checkout didn't work.

This change makes the '<-- current' marker reflect where HEAD actually
is by using 'git rev-parse HEAD' instead of reading BISECT_EXPECTED_REV.
This way, if users manually check out different commits during bisect
(e.g., to test commits they expect to fail faster), the UI correctly
shows which commit is actually checked out.

Fixes jesseduffield#5105

Signed-off-by: majiayu000 <1835304752@qq.com>
@majiayu000

Copy link
Copy Markdown
Contributor Author

Closing this PR due to extended inactivity. Happy to reopen if there's still interest — feel free to comment.

@majiayu000 majiayu000 closed this Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

checkout commits fails during bisect

1 participant