diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-12 05:56:15 -0700 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2018-07-17 10:30:53 +0200 |
commit | 1025059d1f15afa3ec55e7fff78633c517d0c3c2 (patch) | |
tree | 0856b884cdb9ef3245650baaf810b7ebdc7aff0f /lib | |
parent | eda8156e5c2b9bd026e7f56c0fa36e7cd7007df5 (diff) | |
download | gitlab-ce-1025059d1f15afa3ec55e7fff78633c517d0c3c2.tar.gz |
Rename WHITELISTED_FILENAMES => IGNORED_FILENAMES
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/import_export/file_importer.rb | 4 |
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 |