summaryrefslogtreecommitdiff
path: root/db/migrate/20161226122833_remove_dot_git_from_usernames.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20161226122833_remove_dot_git_from_usernames.rb')
-rw-r--r--db/migrate/20161226122833_remove_dot_git_from_usernames.rb4
1 files changed, 3 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 8986cd8cb4b..133435523e1 100644
--- a/db/migrate/20161226122833_remove_dot_git_from_usernames.rb
+++ b/db/migrate/20161226122833_remove_dot_git_from_usernames.rb
@@ -64,7 +64,9 @@ class RemoveDotGitFromUsernames < ActiveRecord::Migration
# we rename suffix instead of removing it
path = path.sub(/\.git\z/, '_git')
- check_routes(path.dup, 0, path)
+ Gitlab::GitalyClient::StorageSettings.allow_disk_access do
+ check_routes(path.dup, 0, path)
+ end
end
def check_routes(base, counter, path)