mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Skip merge commit with rubygems and bundler.
This commit is contained in:
parent
46491af74c
commit
c8e1be6f1f
1 changed files with 11 additions and 5 deletions
|
@ -238,12 +238,18 @@ def sync_default_gems_with_commits(gem, range)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
IO.popen(%W"git log --format=%H #{range}") do |commits|
|
IO.popen(%W"git log --format=%H,%s #{range}") do |f|
|
||||||
commits.read.split.reverse.each do |commit|
|
commits = f.read.split("\n").reverse.map{|commit| commit.split(',')}
|
||||||
puts "Pick #{commit} from #{$repositories[gem.to_sym]}."
|
commits.each do |sha, subject|
|
||||||
`git cherry-pick #{commit}`
|
puts "Pick #{sha} from #{$repositories[gem.to_sym]}."
|
||||||
|
if subject =~ /^Merge/
|
||||||
|
puts "Skip #{sha}. Because It was merge commit"
|
||||||
|
next
|
||||||
|
end
|
||||||
|
|
||||||
|
`git cherry-pick #{sha}`
|
||||||
unless $?.success?
|
unless $?.success?
|
||||||
puts "Failed to pick #{commit}."
|
puts "Failed to pick #{sha}"
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue