diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-25 08:19:03 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-25 08:19:03 +0900 |
commit | 82ae46211341f926d79c6e2e26f4b9097625443c (patch) | |
tree | f0ccc9affd6d728dc1e06dc6864c4e88ce506304 /tool | |
parent | 077c28887a68c08f84d91e104fd9ac9c39810482 (diff) | |
download | ruby-82ae46211341f926d79c6e2e26f4b9097625443c.tar.gz |
Do not fetch remote tags
Diffstat (limited to 'tool')
-rw-r--r-- | tool/sync_default_gems.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 7f125fae29..7545a27049 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) `git remote add #{gem} git@github.com:#{$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 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") |