@@ 109-113 (lines=5) @@ | ||
106 | $default = false; |
|
107 | try { |
|
108 | ||
109 | if (method_exists('Symfony\Component\Process\Process', 'fromShellCommandline')) { |
|
110 | $process = Process::fromShellCommandline('git remote get-url origin'); |
|
111 | } else { |
|
112 | $process = new Process('git remote get-url origin'); |
|
113 | } |
|
114 | $default = $process |
|
115 | ->mustRun() |
|
116 | ->getOutput(); |
@@ 47-51 (lines=5) @@ | ||
44 | ||
45 | $this->pop->command($hostname, $command); |
|
46 | ||
47 | if (method_exists('Process', 'fromShellCommandline')) { |
|
48 | $process = Process::fromShellCommandline($command); |
|
49 | } else { |
|
50 | $process = new Process($command); |
|
51 | } |
|
52 | $process |
|
53 | ->setTimeout($config['timeout']) |
|
54 | ->setTty($config['tty']) |