Exclude non existent repository storages.
This commit is contained in:
parent
a0715f079c
commit
0a2fb360ee
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class RemoveDotGitFromGroupNames < ActiveRecord::Migration
|
||||||
def move_namespace(group_id, path_was, path)
|
def move_namespace(group_id, path_was, path)
|
||||||
repository_storage_paths = select_all("SELECT distinct(repository_storage) FROM projects WHERE namespace_id = #{group_id}").map do |row|
|
repository_storage_paths = select_all("SELECT distinct(repository_storage) FROM projects WHERE namespace_id = #{group_id}").map do |row|
|
||||||
Gitlab.config.repositories.storages[row['repository_storage']]
|
Gitlab.config.repositories.storages[row['repository_storage']]
|
||||||
end
|
end.compact
|
||||||
|
|
||||||
# Move the namespace directory in all storages paths used by member projects
|
# Move the namespace directory in all storages paths used by member projects
|
||||||
repository_storage_paths.each do |repository_storage_path|
|
repository_storage_paths.each do |repository_storage_path|
|
||||||
|
|
Loading…
Reference in a new issue