summaryrefslogtreecommitdiff
path: root/spec/support/generate-seed-repo-rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/generate-seed-repo-rb')
-rwxr-xr-xspec/support/generate-seed-repo-rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/support/generate-seed-repo-rb b/spec/support/generate-seed-repo-rb
index bee9d419376..a0d496445e6 100755
--- a/spec/support/generate-seed-repo-rb
+++ b/spec/support/generate-seed-repo-rb
@@ -12,16 +12,16 @@
#
#
-require 'erb'
-require 'tempfile'
+require "erb"
+require "tempfile"
-SOURCE = File.expand_path('gitlab-git-test.git', __dir__).freeze
-SCRIPT_NAME = 'generate-seed-repo-rb'.freeze
-REPO_NAME = 'gitlab-git-test.git'.freeze
+SOURCE = File.expand_path("gitlab-git-test.git", __dir__).freeze
+SCRIPT_NAME = "generate-seed-repo-rb".freeze
+REPO_NAME = "gitlab-git-test.git".freeze
def main
Dir.mktmpdir do |dir|
- unless system(*%W[git clone --bare #{SOURCE} #{REPO_NAME}], chdir: dir)
+ unless system("git", "clone", "--bare", SOURCE.to_s, REPO_NAME.to_s, chdir: dir)
abort "git clone failed"
end
@@ -32,8 +32,8 @@ def main
end
def capture!(cmd, dir)
- output = IO.popen(cmd, 'r', chdir: dir) { |io| io.read }
- raise "command failed with #{$?}: #{cmd.join(' ')}" unless $?.success?
+ output = IO.popen(cmd, "r", chdir: dir) { |io| io.read }
+ raise "command failed with #{$?}: #{cmd.join(" ")}" unless $?.success?
output.chomp
end