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

abort sync commit history when it failed to modify commit message.

This commit is contained in:
Hiroshi SHIBATA 2019-07-14 21:52:49 +09:00
parent 8e6a68c18e
commit a3493521a5

View file

@ -254,6 +254,10 @@ def sync_default_gems_with_commits(gem, range)
end
`git filter-branch -f --msg-filter 'echo "[#{$repositories[gem.to_sym]}]" && echo && cat' -- HEAD~1..HEAD`
unless $?.success?
puts "Failed to modify commit message of #{sha}"
break
end
end
end
end