mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Use git pull instead of git fetch if master branch
This commit is contained in:
parent
1e30d0af7d
commit
967ef0d4f6
@ -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…
x
Reference in New Issue
Block a user