I want to clone a repository using Repo.clone_from() with a specific SSH key. This appears to be possible by setting GIT_SSH using custom_environment() on a Git instance. However, clone_from() appears to be creating its own Git instance so I am not able to create a custom environment in this case. Would I have to reimplement clone_from() to use a custom environment? Or is there some other way of working around this limitation that I am missing?
I want to clone a repository using
Repo.clone_from()with a specific SSH key. This appears to be possible by settingGIT_SSHusingcustom_environment()on aGitinstance. However,clone_from()appears to be creating its ownGitinstance so I am not able to create a custom environment in this case. Would I have to reimplementclone_from()to use a custom environment? Or is there some other way of working around this limitation that I am missing?