Skip to content
Snippets Groups Projects
Verified Commit 9b3b0f02 authored by Nick Thomas's avatar Nick Thomas
Browse files

Fix project transfer with hashed-storage attachments

parent e68ee8af
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -67,7 +67,7 @@ module Projects
Labels::TransferService.new(current_user, @old_group, project).execute
 
# Move uploads
Gitlab::UploadsTransfer.new.move_project(project.path, @old_namespace.full_path, @new_namespace.full_path)
move_project_uploads(project)
 
# Move pages
Gitlab::PagesTransfer.new.move_project(project.path, @old_namespace.full_path, @new_namespace.full_path)
Loading
Loading
@@ -139,5 +139,15 @@ module Projects
# Move wiki repo also if present
move_repo_folder("#{@old_path}.wiki", "#{@new_path}.wiki")
end
def move_project_uploads(project)
return if project.hashed_storage?(:attachments)
Gitlab::UploadsTransfer.new.move_project(
project.path,
@old_namespace.full_path,
@new_namespace.full_path
)
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment