summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-09-26 23:12:50 +0200
committerNick Thomas <nick@gitlab.com>2017-09-27 16:01:08 +0100
commita8e04b3250bbbc329598ffe488b6375de71af700 (patch)
tree87cb1d3b78250ff1bc85e6ff93b35d017b8cd7bd /app
parent31a795445768f780481b9127f13c0edc26666d21 (diff)
downloadgitlab-ce-a8e04b3250bbbc329598ffe488b6375de71af700.tar.gz
Move project repositories between namespaces when renaming users
Diffstat (limited to 'app')
-rw-r--r--app/models/concerns/storage/legacy_namespace.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/concerns/storage/legacy_namespace.rb b/app/models/concerns/storage/legacy_namespace.rb
index 5ab5c80a2f5..b3020484738 100644
--- a/app/models/concerns/storage/legacy_namespace.rb
+++ b/app/models/concerns/storage/legacy_namespace.rb
@@ -7,6 +7,8 @@ module Storage
raise Gitlab::UpdatePathError.new('Namespace cannot be moved, because at least one project has tags in container registry')
end
+ expires_full_path_cache
+
# Move the namespace directory in all storage paths used by member projects
repository_storage_paths.each do |repository_storage_path|
# Ensure old directory exists before moving it