Commit 1025059d authored by Stan Hu's avatar Stan Hu Committed by Alessio Caiazza

Rename WHITELISTED_FILENAMES => IGNORED_FILENAMES

parent eda8156e
...@@ -4,7 +4,7 @@ module Gitlab ...@@ -4,7 +4,7 @@ module Gitlab
include Gitlab::ImportExport::CommandLineUtil include Gitlab::ImportExport::CommandLineUtil
MAX_RETRIES = 8 MAX_RETRIES = 8
WHITELISTED_FILENAMES = %w(. ..).freeze IGNORED_FILENAMES = %w(. ..).freeze
def self.import(*args) def self.import(*args)
new(*args).import new(*args).import
...@@ -60,7 +60,7 @@ module Gitlab ...@@ -60,7 +60,7 @@ module Gitlab
end end
def extracted_files def extracted_files
Dir.glob("#{@shared.export_path}/**/*", File::FNM_DOTMATCH).reject { |f| WHITELISTED_FILENAMES.include?(File.basename(f)) } Dir.glob("#{@shared.export_path}/**/*", File::FNM_DOTMATCH).reject { |f| IGNORED_FILENAMES.include?(File.basename(f)) }
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment