Exclude docs/ from YARP sync
This commit is contained in:
parent
b9ef819116
commit
2502821abb
@ -577,11 +577,16 @@ module SyncDefaultGems
|
|||||||
when "rubygems"
|
when "rubygems"
|
||||||
# We don't copy any vcr_cassettes to this repository. Because the directory does not
|
# 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/`.
|
# exist, rename detection doesn't work. So it starts with the original path `bundler/`.
|
||||||
%w[bundler/spec/support/artifice/vcr_cassettes].each do |rem|
|
ignored_paths = %w[bundler/spec/support/artifice/vcr_cassettes]
|
||||||
if File.exist?(rem)
|
when "yarp"
|
||||||
system("git", "reset", rem)
|
# Rename detection never works between ruby/ruby/doc and ruby/yarp/docs
|
||||||
rm_rf(rem)
|
# since ruby/ruby/doc is not something owned by YARP.
|
||||||
|
ignored_paths = %w[docs/]
|
||||||
end
|
end
|
||||||
|
ignored_paths.each do |path|
|
||||||
|
if File.exist?(path)
|
||||||
|
system("git", "reset", path)
|
||||||
|
rm_rf(path)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user