From c735f271c8fd5cad435d7790841896db243073ae Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Wed, 26 Dec 2018 09:40:19 +0900 Subject: [PATCH] Fix the seeder 24_forks.rb cannot find public project --- db/fixtures/development/24_forks.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/fixtures/development/24_forks.rb b/db/fixtures/development/24_forks.rb index 61e39c871e6..f847d7ebd64 100644 --- a/db/fixtures/development/24_forks.rb +++ b/db/fixtures/development/24_forks.rb @@ -4,6 +4,8 @@ Sidekiq::Testing.inline! do Gitlab::Seeder.quiet do User.all.sample(10).each do |user| source_project = Project.public_only.sample + return unless source_project + fork_project = Projects::ForkService.new(source_project, user, namespace: user.namespace).execute if fork_project.valid?