diff options
Diffstat (limited to 'db/fixtures')
-rw-r--r-- | db/fixtures/development/04_labels.rb | 2 | ||||
-rw-r--r-- | db/fixtures/development/12_snippets.rb | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/db/fixtures/development/04_labels.rb b/db/fixtures/development/04_labels.rb index 5f0d7f2d8be..0a09e8684e3 100644 --- a/db/fixtures/development/04_labels.rb +++ b/db/fixtures/development/04_labels.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'digest/md5' - class Gitlab::Seeder::GroupLabels def initialize(group, label_per_group: 10) @group = group diff --git a/db/fixtures/development/12_snippets.rb b/db/fixtures/development/12_snippets.rb index 6d31007b320..24500aa3e7d 100644 --- a/db/fixtures/development/12_snippets.rb +++ b/db/fixtures/development/12_snippets.rb @@ -35,6 +35,8 @@ Gitlab::Seeder.quiet do visibility_level: Gitlab::VisibilityLevel.values.sample, content: 'foo' }).tap do |snippet| + snippet.repository.expire_exists_cache + unless snippet.repository_exists? Gitlab::Seeder::SnippetRepository.new(snippet).import end @@ -48,4 +50,3 @@ Gitlab::Seeder.quiet do Gitlab::Seeder::SnippetRepository.cleanup end - |