Skip to content

Commit 10024bc

Browse files
committed
Fetch necessary tag of bundled gems
1 parent 75d63f3 commit 10024bc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tool/fetch-bundled_gems.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@
3535
if r
3636
puts "fetching #{color.notice(r)} ..."
3737
system("git", "fetch", "origin", r, chdir: n) or abort
38+
else
39+
c ||= ["v#{v}", v].find do |c|
40+
puts "fetching #{color.notice(c)} ..."
41+
system("git", "fetch", "origin", "refs/tags/#{c}:refs/tags/#{c}", chdir: n)
42+
end or abort
3843
end
3944

40-
c = r || "v#{v}"
4145
checkout = %w"git -c advice.detachedHead=false checkout"
4246
print %[checking out #{color.notice(c)} (v=#{color.info(v)}]
4347
print %[, r=#{color.info(r)}] if r

0 commit comments

Comments
 (0)