Skip to content

Conversation

@majiayu000
Copy link

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 <[email protected]>
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 out commits fails during bisect

1 participant