From e61f66b3d16cf097af8fbf3072018fd7d9ec8b67 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Tue, 26 Jun 2018 17:05:48 -0700 Subject: When moving issues, don't attempt to move files in object storage Closes #48505 --- lib/gitlab/gfm/uploads_rewriter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/gitlab/gfm/uploads_rewriter.rb b/lib/gitlab/gfm/uploads_rewriter.rb index b6eeb5d9a2b..ac00f3e2f8d 100644 --- a/lib/gitlab/gfm/uploads_rewriter.rb +++ b/lib/gitlab/gfm/uploads_rewriter.rb @@ -48,7 +48,7 @@ module Gitlab def find_file(project, secret, file) uploader = FileUploader.new(project, secret: secret) uploader.retrieve_from_store!(file) - uploader.file + uploader.file if uploader.object_store == ObjectStorage::Store::LOCAL end # Because the uploaders use 'move_to_store' we must have a temporary -- cgit v1.2.1