summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-12-26 09:40:19 +0900
committerShinya Maeda <shinya@gitlab.com>2018-12-26 09:40:19 +0900
commitc735f271c8fd5cad435d7790841896db243073ae (patch)
tree37e9e7bd116da99d477874851060a6698a6a0937 /db
parent5dc656fc1f053d397ad1e6c1d85a815f03a5d634 (diff)
downloadgitlab-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.rb2
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?