Method: Git::Lib#pull
- Defined in:
- lib/git/lib.rb
#pull(remote = nil, branch = nil)
991 992 993 994 995 996 997 998 |
# File 'lib/git/lib.rb', line 991 def pull(remote = nil, branch = nil) raise ArgumentError, "You must specify a remote if a branch is specified" if remote.nil? && !branch.nil? arr_opts = [] arr_opts << remote if remote arr_opts << branch if branch command('pull', *arr_opts) end |