summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-03-28 00:51:13 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-03-28 17:17:51 +0900
commit98b409cb9ce2c93c8df7e0f0713e1e771c84c047 (patch)
tree6b88f5f0f1198fc8db70f10014015679b8a8752d /tool/sync_default_gems.rb
parentf6adc5be94a9f70a5b9897b81dabdeb49b573393 (diff)
Set FILTER_BRANCH_SQUELCH_WARNING only in child environment
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7601
Diffstat (limited to 'tool/sync_default_gems.rb')
-rwxr-xr-xtool/sync_default_gems.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 50c35761f3..83cac39a49 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -520,8 +520,6 @@ module SyncDefaultGems
failed_commits = []
- ENV["FILTER_BRANCH_SQUELCH_WARNING"] = "1"
-
require 'shellwords'
filter = [
ENV.fetch('RUBY', 'ruby').shellescape,
@@ -595,7 +593,9 @@ module SyncDefaultGems
puts "Update commit message: #{sha}"
- IO.popen(%W[git filter-branch -f --msg-filter #{[filter, repo, sha].join(' ')} -- HEAD~1..HEAD], &:read)
+ IO.popen({"FILTER_BRANCH_SQUELCH_WARNING" => "1"},
+ %W[git filter-branch -f --msg-filter #{[filter, repo, sha].join(' ')} -- HEAD~1..HEAD],
+ &:read)
unless $?.success?
puts "Failed to modify commit message of #{sha}"
break