Method: Autoshell::Git#clone
- Defined in:
- lib/autoshell/git.rb
#clone(repo_url) ⇒ String
Clone a repo to disk from the url
66 67 68 69 70 71 |
# File 'lib/autoshell/git.rb', line 66 def clone(repo_url) mkpdir working_dir run 'git', 'clone', '--recursive', repo_url.split('#')[0], working_dir branch_from_repo_url(repo_url) update end |