diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-05-12 18:10:05 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-12 18:46:16 +0300 |
commit | 3760a7c230512fef8643bbd078e59ad20787d591 (patch) | |
tree | bf212e8a06a8c66c4e6e2d5712bb8e66a2e8446f /lib/gitlab/database/rename_reserved_paths_migration/v1 | |
parent | 61f811e61d3782784f94d9f8ff36d62deb69e8fa (diff) |
Only rename namespaces and projects with an invalid path
For exact matches, not namespaces that end with an invalid path
Diffstat (limited to 'lib/gitlab/database/rename_reserved_paths_migration/v1')
-rw-r--r-- | lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb b/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb index de4e6e7c404..95606290486 100644 --- a/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb +++ b/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb @@ -15,7 +15,7 @@ module Gitlab end def path_patterns - @path_patterns ||= paths.map { |path| "%#{path}" } + @path_patterns ||= paths.map { |path| ["%/#{path}", "#{path}"] }.flatten end def rename_path_for_routable(routable) |