mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use git pull
instead of git fetch
if master branch
This commit is contained in:
parent
1e30d0af7d
commit
967ef0d4f6
1 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,11 @@ end
|
|||
|
||||
if File.directory?(n)
|
||||
puts "updating #{n} ..."
|
||||
system(*%W"git fetch", chdir: n) or abort
|
||||
if v == "master"
|
||||
system(*%W"git pull", chdir: n) or abort
|
||||
else
|
||||
system(*%W"git fetch", chdir: n) or abort
|
||||
end
|
||||
else
|
||||
puts "retrieving #{n} ..."
|
||||
system(*%W"git clone #{u} #{n}") or abort
|
||||
|
|
Loading…
Reference in a new issue