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

Add to support the single commit for sync_default_gems.rb

This commit is contained in:
Hiroshi SHIBATA 2019-11-30 14:48:26 +09:00
parent f8cc05dec3
commit 80705e2c4f
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -279,6 +279,10 @@ def sync_default_gems_with_commits(gem, range)
end
system(*%W"git fetch --no-tags #{gem}")
unless range.include?("..")
range = "#{range}~1..#{range}"
end
commits = IO.popen(%W"git log --format=%H,%s #{range}") do |f|
f.read.split("\n").reverse.map{|commit| commit.split(',', 2)}
end