diff options
author | Jose <jvargas@gitlab.com> | 2018-07-17 17:27:44 -0500 |
---|---|---|
committer | Jose <jvargas@gitlab.com> | 2018-07-17 17:27:44 -0500 |
commit | df041608845c3b7f0a40621cbcc28a97cd55b927 (patch) | |
tree | bcb95181339cac42897c73ad987e4b5fe5e42df4 /lib | |
parent | 489025bbdd449948e67e305e53a638d1e81ecc84 (diff) | |
parent | 465da1c7b48173ff01ca6447d390b999643eb9c4 (diff) | |
download | gitlab-ce-df041608845c3b7f0a40621cbcc28a97cd55b927.tar.gz |
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into jivl-dev-master-into-com-masterjivl-dev-master-into-com-master
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/import_export/file_importer.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/import_export/file_importer.rb b/lib/gitlab/import_export/file_importer.rb index 0f4c3498036..4c411f4847e 100644 --- a/lib/gitlab/import_export/file_importer.rb +++ b/lib/gitlab/import_export/file_importer.rb @@ -4,6 +4,7 @@ module Gitlab include Gitlab::ImportExport::CommandLineUtil MAX_RETRIES = 8 + IGNORED_FILENAMES = %w(. ..).freeze def self.import(*args) new(*args).import @@ -59,7 +60,7 @@ module Gitlab end def extracted_files - Dir.glob("#{@shared.export_path}/**/*", File::FNM_DOTMATCH).reject { |f| f =~ %r{.*/\.{1,2}$} } + Dir.glob("#{@shared.export_path}/**/*", File::FNM_DOTMATCH).reject { |f| IGNORED_FILENAMES.include?(File.basename(f)) } end end end |