summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtool/fetch-bundled_gems.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/tool/fetch-bundled_gems.rb b/tool/fetch-bundled_gems.rb
index ae3068d35c..ba16d726fd 100755
--- a/tool/fetch-bundled_gems.rb
+++ b/tool/fetch-bundled_gems.rb
@@ -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