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:
parent
f8cc05dec3
commit
80705e2c4f
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue