Adapt use of Gitlab::Popen to new style

This commit is contained in:
Jacob Vosmaer 2014-02-25 12:00:33 +01:00
parent 38f4b61a58
commit 36c2c354fc
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class Key < ActiveRecord::Base
Tempfile.open('gitlab_key_file') do |file|
file.puts key
file.rewind
cmd_output, cmd_status = popen("ssh-keygen -lf #{file.path}", '/tmp')
cmd_output, cmd_status = popen(%W(ssh-keygen -lf #{file.path}), '/tmp')
end
if cmd_status.zero?

View File

@ -33,7 +33,7 @@ module Gitlab
end
def create
output, status = popen("git clone #{project.repository.path_to_repo} #{path}",
output, status = popen(%W(git clone -- #{project.repository.path_to_repo} #{path}),
Gitlab.config.satellites.path)
log("PID: #{project.id}: git clone #{project.repository.path_to_repo} #{path}")