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

No commits to pick is success [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2021-08-31 19:07:08 +09:00
parent f315be2615
commit 41867532ac
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -380,7 +380,7 @@ def sync_default_gems_with_commits(gem, ranges, edit: nil)
range = "#{range}~1..#{range}" range = "#{range}~1..#{range}"
end end
IO.popen(%W"git log --format=%H,%s #{range}") do |f| IO.popen(%W"git log --format=%H,%s #{range} --") do |f|
f.read.split("\n").reverse.map{|commit| commit.split(',', 2)} f.read.split("\n").reverse.map{|commit| commit.split(',', 2)}
end end
end end
@ -393,7 +393,7 @@ def sync_default_gems_with_commits(gem, ranges, edit: nil)
if commits.empty? if commits.empty?
puts "No commits to pick" puts "No commits to pick"
return return true
end end
puts "Try to pick these commits:" puts "Try to pick these commits:"