summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-14 21:52:49 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-14 21:53:19 +0900
commita3493521a55e32081520be805a764fd2ad43fe7b (patch)
tree4b950d18f1a7049b3510a2b74085ce8472fb011a /tool
parent8e6a68c18edeb8dfef494862093539d987b6ad6a (diff)
abort sync commit history when it failed to modify commit message.
Diffstat (limited to 'tool')
-rw-r--r--tool/sync_default_gems.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 27d8dbf32a..897fa79b94 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -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