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

Allways fetch the latest commit from default gems repository.

This commit is contained in:
Hiroshi SHIBATA 2019-07-22 18:00:37 +09:00
parent 1feda1c2b0
commit 9f9a6dbc14
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -234,9 +234,9 @@ def sync_default_gems_with_commits(gem, range)
IO.popen(%W"git remote") do |f|
unless f.read.split.include?(gem)
`git remote add #{gem} git@github.com:#{$repositories[gem.to_sym]}.git`
end
end
`git fetch #{gem}`
end
end
IO.popen(%W"git log --format=%H,%s #{range}") do |f|
commits = f.read.split("\n").reverse.map{|commit| commit.split(',')}