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:
parent
8e6a68c18e
commit
a3493521a5
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue