Skip to content

Deal with nil branch#221

Open
ekohl wants to merge 1 commit intovoxpupuli:masterfrom
ekohl:handle-error-condition
Open

Deal with nil branch#221
ekohl wants to merge 1 commit intovoxpupuli:masterfrom
ekohl:handle-error-condition

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