Getting an error with the Ruby Git gem's Git.ls_remote command on Bitrise.
Git.ls_remote('[email protected]:company/repo_name.git')
is giving the error:
undefined method `split' for nil:NilClass (NoMethodError) (ref, type, name) = info.split('/', 3)
What I have realised is two things:
[1] the error actually seems to occur when processing the output from Git.ls_remote, so it doesn't actually seem to be an issue with the ssh url (which is what I thought originally).
[2] This issue is only occurring when running this on Bitrise. Once I set-up all the ssh stuff locally, and run the same ls_remote code locally, I don't get this issue.
I'm thinking then that maybe there's an issue on Bitrise with running Ruby's Git.ls_remote.