summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-26 19:42:48 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-26 21:12:58 +0900
commit456e1d1eaa9bb11adaed1acde488d7da3c88704b (patch)
tree86104dcaeffb9a53c2227d6bb5c7f410f3049bae
parent2d1cf658eeafbd989e0b61bae08a8d0b1b49e2bd (diff)
Try the tag without "v" prefix to checkout upstream repositories
-rw-r--r--gems/bundled_gems4
-rwxr-xr-xtool/fetch-bundled_gems.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/gems/bundled_gems b/gems/bundled_gems
index ebe195f78f..4bf063abff 100644
--- a/gems/bundled_gems
+++ b/gems/bundled_gems
@@ -2,9 +2,9 @@
minitest 5.16.2 https://github.com/seattlerb/minitest
power_assert 2.0.1 https://github.com/ruby/power_assert
rake 13.0.6 https://github.com/ruby/rake
-test-unit 3.5.3 https://github.com/test-unit/test-unit 3.5.3
+test-unit 3.5.3 https://github.com/test-unit/test-unit
rexml 3.2.5 https://github.com/ruby/rexml
-rss 0.2.9 https://github.com/ruby/rss 0.2.9
+rss 0.2.9 https://github.com/ruby/rss
net-ftp 0.1.3 https://github.com/ruby/net-ftp
net-imap 0.2.3 https://github.com/ruby/net-imap
net-pop 0.1.1 https://github.com/ruby/net-pop
diff --git a/tool/fetch-bundled_gems.rb b/tool/fetch-bundled_gems.rb
index 90c5fbff37..8d04892b70 100755
--- a/tool/fetch-bundled_gems.rb
+++ b/tool/fetch-bundled_gems.rb
@@ -27,5 +27,5 @@ c = r || "v#{v}"
checkout = %w"git -c advice.detachedHead=false checkout"
puts "checking out #{c} (v=#{v}, r=#{r}) ..."
unless system(*checkout, c, "--", chdir: n)
- abort
+ abort if r or !system(*checkout, v, "--", chdir: n)
end