Skip to content
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 privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deal with nil branch #221

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented May 3, 2021

default_branch doesn't guarantee a result. This checks for the nil value and raises an exception.

This is probably not a good way to deal with it, but it's a lot clearer for the user. I happened to run into this because I didn't have a HEAD for the remote origin so rm .git/refs/remotes/origin/HEAD is the reproducer.

@bastelfreak
Copy link
Member

We can close this since #233 got merged?

@alexjfisher
Copy link
Member

We can close this since #233 got merged?

Don't think so.

default_branch doesn't guarantee a result. This checks for the nil value
and raises an exception.
@ekohl ekohl force-pushed the handle-error-condition branch from 7da6a12 to 047b7ab Compare March 6, 2023 16:31
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