Expires full_path cache after repository is transferred
This commit is contained in:
parent
2446252cfd
commit
b3b034b849
2 changed files with 7 additions and 0 deletions
|
@ -78,6 +78,7 @@ module Projects
|
|||
Gitlab::PagesTransfer.new.move_project(project.path, @old_namespace.full_path, @new_namespace.full_path)
|
||||
|
||||
project.old_path_with_namespace = @old_path
|
||||
project.expires_full_path_cache
|
||||
|
||||
execute_system_hooks
|
||||
end
|
||||
|
|
|
@ -30,6 +30,12 @@ describe Projects::TransferService, services: true do
|
|||
transfer_project(project, user, group)
|
||||
end
|
||||
|
||||
it 'expires full_path cache' do
|
||||
expect(project).to receive(:expires_full_path_cache)
|
||||
|
||||
transfer_project(project, user, group)
|
||||
end
|
||||
|
||||
it 'executes system hooks' do
|
||||
expect_any_instance_of(Projects::TransferService).to receive(:execute_system_hooks)
|
||||
|
||||
|
|
Loading…
Reference in a new issue