Module: Gpr::Actions::Fetch
- Defined in:
- lib/gpr/actions/fetch.rb
Instance Method Summary collapse
Instance Method Details
#git_fetch(path, remote, branch) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/gpr/actions/fetch.rb', line 4 def git_fetch(path, remote, branch) Dir.chdir(path) if branch.nil? `git fetch #{remote}` else `git fetch #{remote} #{branch}` end end |