Skip to content

Conversation

@benthayer
Copy link
Owner

During a rebase conflict or a bisect, the head branch would be considered checked out. Since a checked out branch couldn't be deleted, we had trouble setting up new levels during resets/loads/re-inits. This should fix that.

#290 Needs this

@benthayer
Copy link
Owner Author

@sahansk2 Would you mind taking a look at this?

Copy link
Contributor

@sahansk2 sahansk2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, looks good! Just added a [minor] comment about testing.

file_operator.repo.git.bisect('start')


def test_reset_during_rebase_conflict(gg):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nitpick, I'd change the testing to use fixtures instead, but that's not the point of this PR. So, feel free to keep it as it is, if you want.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We got a pytest

The level loaded is used for the other levels to base their rebase
conflicts off of
@benthayer benthayer merged commit 48b3e3b into master Oct 10, 2020
@benthayer benthayer deleted the delete-branch-fix branch October 10, 2020 13:16
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.

3 participants