Commit c735f271 authored by Shinya Maeda's avatar Shinya Maeda

Fix the seeder 24_forks.rb cannot find public project

parent 5dc656fc
...@@ -4,6 +4,8 @@ Sidekiq::Testing.inline! do ...@@ -4,6 +4,8 @@ Sidekiq::Testing.inline! do
Gitlab::Seeder.quiet do Gitlab::Seeder.quiet do
User.all.sample(10).each do |user| User.all.sample(10).each do |user|
source_project = Project.public_only.sample source_project = Project.public_only.sample
return unless source_project
fork_project = Projects::ForkService.new(source_project, user, namespace: user.namespace).execute fork_project = Projects::ForkService.new(source_project, user, namespace: user.namespace).execute
if fork_project.valid? if fork_project.valid?
......
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