summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtool/sync_default_gems.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index ce6a6dd0ae..1f2e0ddf4d 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -572,15 +572,16 @@ module SyncDefaultGems
elsif /^CONFLICT/ =~ result
# Forcibly remove any files that we don't want to copy to this repository.
# We also ignore them as new `toplevels` even when they don't conflict.
+ ignored_paths = []
case gem
when "rubygems"
# We don't copy any vcr_cassettes to this repository. Because the directory does not
# exist, rename detection doesn't work. So it starts with the original path `bundler/`.
- ignored_paths = %w[bundler/spec/support/artifice/vcr_cassettes]
+ ignored_paths += %w[bundler/spec/support/artifice/vcr_cassettes]
when "yarp"
# Rename detection never works between ruby/ruby/doc and ruby/yarp/docs
# since ruby/ruby/doc is not something owned by YARP.
- ignored_paths = %w[docs/]
+ ignored_paths += %w[docs/]
end
ignored_paths.each do |path|
if File.exist?(path)