Commit 6af144a1 authored by Toon Claes's avatar Toon Claes

Update project_repository when moved across shards

parent 7b9cfbc5
......@@ -17,6 +17,7 @@ module Projects
mark_old_paths_for_archive
project.update(repository_storage: new_repository_storage_key, repository_read_only: false)
project.track_project_repository
else
project.update(repository_read_only: false)
end
......
......@@ -28,6 +28,7 @@ describe Projects::UpdateRepositoryStorageService do
expect(project).not_to be_repository_read_only
expect(project.repository_storage).to eq('test_second_storage')
expect(gitlab_shell.exists?('default', old_path)).to be(false)
expect(project.project_repository.shard_name).to eq('test_second_storage')
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment