summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-07-12 05:56:15 -0700
committerAlessio Caiazza <acaiazza@gitlab.com>2018-07-17 10:30:53 +0200
commit1025059d1f15afa3ec55e7fff78633c517d0c3c2 (patch)
tree0856b884cdb9ef3245650baaf810b7ebdc7aff0f /lib
parenteda8156e5c2b9bd026e7f56c0fa36e7cd7007df5 (diff)
downloadgitlab-ce-1025059d1f15afa3ec55e7fff78633c517d0c3c2.tar.gz
Rename WHITELISTED_FILENAMES => IGNORED_FILENAMES
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/import_export/file_importer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/import_export/file_importer.rb b/lib/gitlab/import_export/file_importer.rb
index de36adc1d5a..4c411f4847e 100644
--- a/lib/gitlab/import_export/file_importer.rb
+++ b/lib/gitlab/import_export/file_importer.rb
@@ -4,7 +4,7 @@ module Gitlab
include Gitlab::ImportExport::CommandLineUtil
MAX_RETRIES = 8
- WHITELISTED_FILENAMES = %w(. ..).freeze
+ IGNORED_FILENAMES = %w(. ..).freeze
def self.import(*args)
new(*args).import
@@ -60,7 +60,7 @@ module Gitlab
end
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