diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-09-27 15:23:28 +0000 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-10-11 16:01:35 +0200 |
commit | fa67a9df9f77e84240ec090fb20b815827078f6b (patch) | |
tree | ccb32be84e37f00058da228072646596ddbc5b67 /app | |
parent | f8f63780461ffa1b3f6457a8400f46fa7d09f6b6 (diff) | |
download | gitlab-ce-fa67a9df9f77e84240ec090fb20b815827078f6b.tar.gz |
Merge branch '38126-security-username-change' into 'security-10-0'
Move project repositories between namespaces when renaming users (10.0)
See merge request gitlab/gitlabhq!2200
Diffstat (limited to 'app')
-rw-r--r-- | app/models/concerns/storage/legacy_namespace.rb | 2 |
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 |