From 9fd2927bba318cb8b8c0bce6ea6e86867fdaeecb Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Fri, 5 Jan 2018 10:19:32 -0800 Subject: Skip project repository disk validation in development project seeder When seeding the GDK with new projects, it's very common to reuse the same repository names on disk. Previously, the validation would fail and leave the projects in a half-broken state. We can skip the validation to avoid causing odd errors. Closes gitlab-org/gitlab-development-kit#310 --- db/fixtures/development/04_project.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'db/fixtures') diff --git a/db/fixtures/development/04_project.rb b/db/fixtures/development/04_project.rb index 1f8f5cfc82b..213c8bca639 100644 --- a/db/fixtures/development/04_project.rb +++ b/db/fixtures/development/04_project.rb @@ -63,7 +63,8 @@ Sidekiq::Testing.inline! do namespace_id: group.id, name: project_path.titleize, description: FFaker::Lorem.sentence, - visibility_level: Gitlab::VisibilityLevel.values.sample + visibility_level: Gitlab::VisibilityLevel.values.sample, + skip_disk_validation: true } project = Projects::CreateService.new(User.first, params).execute -- cgit v1.2.3