Fix the seeder 24_forks.rb cannot find public project
This commit is contained in:
parent
5dc656fc1f
commit
c735f271c8
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue