summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-07-12 08:46:24 +0200
committerJames Lopez <james@jameslopez.es>2018-07-12 08:46:24 +0200
commit8ea2027f43e5a60de2e969866d3e461617959cb8 (patch)
treed38be3425393c4870f23a8aef0f4d374c70e4e65
parente2b7880b9d959f71e4127b8d6eb993e27460b5d3 (diff)
downloadgitlab-ce-8ea2027f43e5a60de2e969866d3e461617959cb8.tar.gz
fix uploads restorer missing path
-rw-r--r--lib/gitlab/import_export/uploads_restorer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/import_export/uploads_restorer.rb b/lib/gitlab/import_export/uploads_restorer.rb
index 69c1f289797..df24333cd74 100644
--- a/lib/gitlab/import_export/uploads_restorer.rb
+++ b/lib/gitlab/import_export/uploads_restorer.rb
@@ -22,6 +22,10 @@ module Gitlab
def uploads_path
FileUploader.absolute_base_dir(@project)
end
+
+ def uploads_export_path
+ @uploads_export_path ||= File.join(@shared.export_path, 'uploads')
+ end
end
end
end