diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-12-26 09:40:19 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-12-26 09:40:19 +0900 |
commit | c735f271c8fd5cad435d7790841896db243073ae (patch) | |
tree | 37e9e7bd116da99d477874851060a6698a6a0937 /db | |
parent | 5dc656fc1f053d397ad1e6c1d85a815f03a5d634 (diff) | |
download | gitlab-ce-c735f271c8fd5cad435d7790841896db243073ae.tar.gz |
Fix the seeder 24_forks.rb cannot find public project
Diffstat (limited to 'db')
-rw-r--r-- | db/fixtures/development/24_forks.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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? |