[前][次][番号順一覧][スレッド一覧]

ruby-changes:56492

From: Hiroshi <ko1@a...>
Date: Sun, 14 Jul 2019 22:00:55 +0900 (JST)
Subject: [ruby-changes:56492] Hiroshi SHIBATA: a3493521a5 (master): abort sync commit history when it failed to modify commit message.

https://git.ruby-lang.org/ruby.git/commit/?id=a3493521a5

From a3493521a55e32081520be805a764fd2ad43fe7b Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Sun, 14 Jul 2019 21:52:49 +0900
Subject: abort sync commit history when it failed to modify commit message.


diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 27d8dbf..897fa79 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) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L254
       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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]