Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-01-05 21:19:32 +0300
committerStan Hu <stanhu@gmail.com>2018-01-05 21:19:32 +0300
commit9fd2927bba318cb8b8c0bce6ea6e86867fdaeecb (patch)
treecfcb62ee71ffa27b56ecc7d3540a8bf98fafe5b7 /db
parent3d0982e1db84a9112e0e5195e65cab3351fa4353 (diff)
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
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/04_project.rb3
1 files changed, 2 insertions, 1 deletions
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