summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-01-05 10:19:32 -0800
committerStan Hu <stanhu@gmail.com>2018-01-05 10:19:32 -0800
commit9fd2927bba318cb8b8c0bce6ea6e86867fdaeecb (patch)
treecfcb62ee71ffa27b56ecc7d3540a8bf98fafe5b7
parent3d0982e1db84a9112e0e5195e65cab3351fa4353 (diff)
downloadgitlab-ce-9fd2927bba318cb8b8c0bce6ea6e86867fdaeecb.tar.gz
Skip project repository disk validation in development project seedersh-reuse-disk-repositories-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
-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