summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-01-16 10:40:29 +0100
committerJames Lopez <james@jameslopez.es>2017-01-16 10:40:29 +0100
commita9402708b2668be9cc4ef5fac65f5116648f042b (patch)
treeac6a4c22ef40f6867b45b0f4730d0582b5ba9312
parent7d03a55c98dfdc6b27df903b056427089aa0dc95 (diff)
downloadgitlab-ce-fix/rc-migration-failure.tar.gz
fix nil path errorfix/rc-migration-failure
-rw-r--r--db/migrate/20161226122833_remove_dot_git_from_usernames.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/20161226122833_remove_dot_git_from_usernames.rb b/db/migrate/20161226122833_remove_dot_git_from_usernames.rb
index 82ad7fd1b35..edf9914308c 100644
--- a/db/migrate/20161226122833_remove_dot_git_from_usernames.rb
+++ b/db/migrate/20161226122833_remove_dot_git_from_usernames.rb
@@ -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