1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Do not fetch remote tags

This commit is contained in:
Nobuyoshi Nakada 2019-07-25 08:19:03 +09:00
parent 077c28887a
commit 82ae462113
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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")