diff options
author | James Lopez <james@jameslopez.es> | 2018-09-11 08:59:14 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-09-11 08:59:14 +0200 |
commit | 994d91883b0c68524668eb2c475fd5317fca5f9e (patch) | |
tree | 5d8d25de20a933be34c647315f7066aa1d4ea4ee /lib | |
parent | 6e394c44d53fd990422195ffb9f6e70d3d164d48 (diff) | |
download | gitlab-ce-994d91883b0c68524668eb2c475fd5317fca5f9e.tar.gz |
fix avatar restorer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/import_export/avatar_restorer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |