Adapt use of Gitlab::Popen to new style
This commit is contained in:
parent
38f4b61a58
commit
36c2c354fc
|
@ -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?
|
||||
|
|
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue