ruby-changes:65678
From: Nobuyoshi <ko1@a...>
Date: Sun, 28 Mar 2021 18:53:05 +0900 (JST)
Subject: [ruby-changes:65678] 49c1c2dce3 (master): sync_default_gems.rb: escape filter command [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=49c1c2dce3 From 49c1c2dce35e9f818be396dacbaa9a3ff72b5985 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 28 Mar 2021 18:52:19 +0900 Subject: sync_default_gems.rb: escape filter command [ci skip] --- tool/sync_default_gems.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L408 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}." -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/