modulesync icon indicating copy to clipboard operation
modulesync copied to clipboard

Deal with nil branch

Open ekohl opened this issue 3 years ago • 2 comments

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.

ekohl avatar May 03 '21 15:05 ekohl

We can close this since https://github.com/voxpupuli/modulesync/pull/233 got merged?

bastelfreak avatar Jul 23 '21 13:07 bastelfreak

We can close this since #233 got merged?

Don't think so.

alexjfisher avatar Jul 23 '21 14:07 alexjfisher