Commit 320cd7f3 authored by James Lopez's avatar James Lopez

fix var inside loop

parent 40fe7722
...@@ -68,8 +68,10 @@ class RemoveDotGitFromUsernames < ActiveRecord::Migration ...@@ -68,8 +68,10 @@ class RemoveDotGitFromUsernames < ActiveRecord::Migration
end end
def check_routes(base, counter, path) def check_routes(base, counter, path)
route_exists = route_exists?(path)
Gitlab.config.repositories.storages.each_value do |storage| Gitlab.config.repositories.storages.each_value do |storage|
if route_exists?(path) || path_exists?(path, storage) if route_exists && path_exists?(path, storage)
counter += 1 counter += 1
path = "#{base}#{counter}" path = "#{base}#{counter}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment