summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-01-16 13:39:57 +0100
committerJames Lopez <james@jameslopez.es>2017-01-16 13:39:57 +0100
commitefea5e70966ccd656577c794e767ac00154b5c83 (patch)
treea27059f9799496f5a3b6fcc9d64a2914385e7182
parent320cd7f3648b0e30bf48d0fff461d1f79090a589 (diff)
downloadgitlab-ce-efea5e70966ccd656577c794e767ac00154b5c83.tar.gz
fix typo
-rw-r--r--db/migrate/20161226122833_remove_dot_git_from_usernames.rb2
1 files changed, 1 insertions, 1 deletions
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}"