8000 clone: don't swallow error in should_checkout by ethomson · Pull Request #6727 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

clone: don't swallow error in should_checkout #6727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and pr 8000 ivacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

ethomson
Copy link
Member
@ethomson ethomson commented Feb 4, 2024

When determining whether to check out a branch, we did not actually look at should_checkout's possible error condition. Disconnect the boolean "should checkout" value from the potential error code so that it no longer looks like a function that can be treated as if it returns a boolean.

When determining whether to check out a branch, we did not actually look
at `should_checkout`'s possible error condition. Disconnect the boolean
"should checkout" value from the potential error code so that it no
longer looks like a function that can be treated as if it returns a
boolean.
@ethomson ethomson merged commit f6d1cd7 into main Feb 4, 2024
@ethomson ethomson deleted the ethomson/should_checkout_error branch February 5, 2024 09:26
@eth
6B30
omson ethomson added the bug label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0