fix nil path error

This commit is contained in:
James Lopez 2017-01-16 10:40:29 +01:00
parent 7d03a55c98
commit a9402708b2
1 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,8 @@ class RemoveDotGitFromUsernames < ActiveRecord::Migration
Gitlab.config.repositories.storages[row['repository_storage']]
end.compact
path = nil
# Move the namespace directory in all storages paths used by member projects
repository_storage_paths.each do |repository_storage_path|
# Ensure old directory exists before moving it