Skip to content
Snippets Groups Projects
Commit 36c2c354 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Adapt use of Gitlab::Popen to new style

parent 38f4b61a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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?
Loading
Loading
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment