Flowdock
method

clone

Importance_0
v2.3.2 - Show latest stable - 0 notes - Class: Rails::Git
clone(repos, branch=nil) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails_generator/generators/applications/app/scm/git.rb, line 3
    def self.clone(repos, branch=nil)
      `git clone #{repos}`

      if branch
        `cd #{repos.split('/').last}/`
        `git checkout #{branch}`
      end
    end
Register or log in to add new notes.