From 994d91883b0c68524668eb2c475fd5317fca5f9e Mon Sep 17 00:00:00 2001 From: James Lopez Date: Tue, 11 Sep 2018 08:59:14 +0200 Subject: fix avatar restorer --- lib/gitlab/import_export/avatar_restorer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab') diff --git a/lib/gitlab/import_export/avatar_restorer.rb b/lib/gitlab/import_export/avatar_restorer.rb index ded05f73cf8..264a9a41ff0 100644 --- a/lib/gitlab/import_export/avatar_restorer.rb +++ b/lib/gitlab/import_export/avatar_restorer.rb @@ -19,7 +19,7 @@ module Gitlab private def avatar_export_file - @avatar_export_file ||= Dir["#{avatar_export_path}/**/*"].first + @avatar_export_file ||= Dir["#{avatar_export_path}/**/*"].reject { |f| File.directory?(f) }.first end def avatar_export_path -- cgit v1.2.3