From efea5e70966ccd656577c794e767ac00154b5c83 Mon Sep 17 00:00:00 2001 From: James Lopez Date: Mon, 16 Jan 2017 13:39:57 +0100 Subject: [PATCH] fix typo --- db/migrate/20161226122833_remove_dot_git_from_usernames.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20161226122833_remove_dot_git_from_usernames.rb b/db/migrate/20161226122833_remove_dot_git_from_usernames.rb index c3a8f2fd91c..a01f7e4ed52 100644 --- a/db/migrate/20161226122833_remove_dot_git_from_usernames.rb +++ b/db/migrate/20161226122833_remove_dot_git_from_usernames.rb @@ -71,7 +71,7 @@ class RemoveDotGitFromUsernames < ActiveRecord::Migration route_exists = route_exists?(path) Gitlab.config.repositories.storages.each_value do |storage| - if route_exists && path_exists?(path, storage) + if route_exists || path_exists?(path, storage) counter += 1 path = "#{base}#{counter}"