diff options
author | Stan Hu <stanhu@gmail.com> | 2016-04-22 00:39:31 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-04-25 06:57:50 -0700 |
commit | 6dff1a9a2b1d4fb006f75bb941d9b68e4a01ba11 (patch) | |
tree | 9443bcd6b1b0b4db8abf9965b72c971e9d4dbf5b /app/services/projects | |
parent | be85fde6632d1058c17cb3083fa6a9b54fc9871c (diff) | |
download | gitlab-ce-6dff1a9a2b1d4fb006f75bb941d9b68e4a01ba11.tar.gz |
Fix Error 500 due to stale cache when projects are renamed or transferred
Closes gitlab-org/gitlab-ee#506
Diffstat (limited to 'app/services/projects')
-rw-r--r-- | app/services/projects/transfer_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/projects/transfer_service.rb b/app/services/projects/transfer_service.rb index 79a27f4af7e..111b3ec05ea 100644 --- a/app/services/projects/transfer_service.rb +++ b/app/services/projects/transfer_service.rb @@ -34,6 +34,8 @@ module Projects raise TransferError.new("Project with same path in target namespace already exists") end + project.expire_caches_before_rename(old_path) + # Apply new namespace id and visibility level project.namespace = new_namespace project.visibility_level = new_namespace.visibility_level unless project.visibility_level_allowed_by_group? |