Set FILTER_BRANCH_SQUELCH_WARNING only in child environment
This commit is contained in:
parent
f6adc5be94
commit
98b409cb9c
Notes:
git
2023-03-28 08:18:12 +00:00
@ -520,8 +520,6 @@ module SyncDefaultGems
|
|||||||
|
|
||||||
failed_commits = []
|
failed_commits = []
|
||||||
|
|
||||||
ENV["FILTER_BRANCH_SQUELCH_WARNING"] = "1"
|
|
||||||
|
|
||||||
require 'shellwords'
|
require 'shellwords'
|
||||||
filter = [
|
filter = [
|
||||||
ENV.fetch('RUBY', 'ruby').shellescape,
|
ENV.fetch('RUBY', 'ruby').shellescape,
|
||||||
@ -595,7 +593,9 @@ module SyncDefaultGems
|
|||||||
|
|
||||||
puts "Update commit message: #{sha}"
|
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?
|
unless $?.success?
|
||||||
puts "Failed to modify commit message of #{sha}"
|
puts "Failed to modify commit message of #{sha}"
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user