summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-28 18:52:19 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-28 18:52:19 +0900
commit49c1c2dce35e9f818be396dacbaa9a3ff72b5985 (patch)
tree69c12f60a4d8d0283fac6c8b1c6b8f92c55ef76a
parent603d79952037768723247da12d9b093446446941 (diff)
sync_default_gems.rb: escape filter command [ci skip]
-rw-r--r--tool/sync_default_gems.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 5dee884..6322538 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -408,7 +408,12 @@ def sync_default_gems_with_commits(gem, ranges, edit: nil)
ENV["FILTER_BRANCH_SQUELCH_WARNING"] = "1"
- filter = [ENV.fetch('RUBY', 'ruby'), File.realpath(__FILE__), "--message-filter"]
+ require 'shellwords'
+ filter = [
+ ENV.fetch('RUBY', 'ruby').shellescape,
+ File.realpath(__FILE__).shellescape,
+ "--message-filter",
+ ]
commits.each do |sha, subject|
puts "Pick #{sha} from #{repo}."