How can I use ruby-git to recursively clone a remote repo?
I use this code:
require "git"
Git.clone "git://github.com/user/repo.git", "/tmp/repo"
but this does not recursively clone the repo from GitHub.
I need an analog for:
$ git clone git://github.com/user/repo.git /tmp/repo --recursive
Implementation of the
#clonemethod in ruby-git tells us that it is currently impossible:https://github.com/schacon/ruby-git/blob/master/lib/git/lib.rb#L44
You better fork ruby-git and insert a couple of lines there. It will solve your problem and the world will say “thank you”.