module Gpr::Actions::Fetch
Public Instance Methods
git_fetch(path, remote, branch)
click to toggle source
# 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