modulesync
modulesync copied to clipboard
Deal with nil branch
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.
We can close this since https://github.com/voxpupuli/modulesync/pull/233 got merged?
We can close this since #233 got merged?
Don't think so.