Exclude non existent repository storages.

This commit is contained in:
Ruben Davila 2016-12-21 22:18:41 -05:00
parent a0715f079c
commit 0a2fb360ee
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class RemoveDotGitFromGroupNames < ActiveRecord::Migration
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|
Gitlab.config.repositories.storages[row['repository_storage']]
end
end.compact
# Move the namespace directory in all storages paths used by member projects
repository_storage_paths.each do |repository_storage_path|