mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added chrry-pick feature from upstream repository.
This commit is contained in:
parent
be082e2800
commit
265e94a7fa
1 changed files with 11 additions and 0 deletions
|
@ -237,6 +237,17 @@ def sync_default_gems_with_commits(gem, range)
|
|||
`git fetch #{gem}`
|
||||
end
|
||||
end
|
||||
|
||||
IO.popen(%W"git log --format=%H #{range}") do |commits|
|
||||
commits.read.split.reverse.each do |commit|
|
||||
puts "Pick #{commit} from #{$repositories[gem.to_sym]}."
|
||||
`git cherry-pick #{commit}`
|
||||
unless $?.success?
|
||||
puts "Failed to pick #{commit}."
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def sync_lib(repo)
|
||||
|
|
Loading…
Reference in a new issue