Sha256: 9355e84c7cd39766126ada853a69614165e57ddb8eac081ef9abe2d0a30c98ec
Contents?: true
Size: 538 Bytes
Versions: 6
Compression:
Stored size: 538 Bytes
Contents
require 'fileutils' module SeedHelper GITLAB_URL = "git@gitlab.com:gitlab-org/gitlab-elasticsearch-git-test.git" def ensure_seeds if File.exists?(SUPPORT_PATH) FileUtils.rm_r(SUPPORT_PATH) end FileUtils.mkdir_p(SUPPORT_PATH) create_test_bare_repo end def create_test_bare_repo system(git_env, *%W(git clone --bare #{GITLAB_URL}), chdir: SUPPORT_PATH) end # Prevent developer git configurations from being persisted to test # repositories def git_env {'GIT_TEMPLATE_DIR' => ''} end end
Version data entries
6 entries across 6 versions & 1 rubygems