aboutsummaryrefslogtreecommitdiffstats
path: root/tool/fetch-bundled_gems.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/fetch-bundled_gems.rb')
-rwxr-xr-xtool/fetch-bundled_gems.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/fetch-bundled_gems.rb b/tool/fetch-bundled_gems.rb
index ebb70e88f9..90c5fbff37 100755
--- a/tool/fetch-bundled_gems.rb
+++ b/tool/fetch-bundled_gems.rb
@@ -19,6 +19,10 @@ else
puts "retrieving #{n} ..."
system(*%W"git clone #{u} #{n}") or abort
end
+if r
+ puts "fetching #{r} ..."
+ system("git", "fetch", "origin", r, chdir: n) or abort
+end
c = r || "v#{v}"
checkout = %w"git -c advice.detachedHead=false checkout"
puts "checking out #{c} (v=#{v}, r=#{r}) ..."