Method: Externals::GitProject#ex
- Defined in:
- lib/externals/scms/git_project.rb
#ex(*args) ⇒ Object
138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/externals/scms/git_project.rb', line 138 def ex *args if revision # No clean reliable way to clone something that's not a branch or tag. # just call up instead. up(*args) else clone_opts = "--depth 1" if branch clone_opts << " -b #{branch}" end do_clone "ex", clone_opts end end |