ruby-changes:56653
From: Nobuyoshi <ko1@a...>
Date: Thu, 25 Jul 2019 08:19:37 +0900 (JST)
Subject: [ruby-changes:56653] Nobuyoshi Nakada: 82ae462113 (master): Do not fetch remote tags
https://git.ruby-lang.org/ruby.git/commit/?id=82ae462113 From 82ae46211341f926d79c6e2e26f4b9097625443c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 25 Jul 2019 08:19:03 +0900 Subject: Do not fetch remote tags diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 7f125fa..7545a27 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -236,7 +236,7 @@ def sync_default_gems_with_commits(gem, range) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L236 `git remote add #{gem} git@g...:#{$repositories[gem.to_sym]}.git` end end - `git fetch #{gem}` + `git fetch --no-tags #{gem}` IO.popen(%W"git log --format=%H,%s #{range}") do |f| commits = f.read.split("\n").reverse.map{|commit| commit.split(',')} @@ -266,7 +266,7 @@ end https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L266 def sync_lib(repo) unless File.directory?("../#{repo}") - abort "Expected '../#{repo}' (#{File.expand_path("../#{repo}")}) to be a directory, but it wasn't." + abort %[Expected '../#{repo}' (#{File.expand_path("../#{repo}")}) to be a directory, but it wasn't.] end rm_rf(["lib/#{repo}.rb", "lib/#{repo}/*", "test/test_#{repo}.rb"]) cp_r(Dir.glob("../#{repo}/lib/*"), "lib") -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/