Add a forgotten default value for ignored_paths
This commit is contained in:
parent
0955ca342e
commit
be889b6d6c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user