Skip to content

Commit 49e5999

Browse files
Applied the symfony fixes to the Admin class too
1 parent 78f60f9 commit 49e5999

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Gitonomy/Git/Admin.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,7 @@ private static function getProcess($command, array $args = [], array $options =
154154
'process_timeout' => 3600,
155155
], $options);
156156

157-
$commandline = array_merge([$options['command'], $command], $args);
158-
159-
// Backward compatible layer for Symfony Process < 4.0.
160-
if (class_exists('Symfony\Component\Process\ProcessBuilder')) {
161-
$commandline = implode(' ', array_map(
162-
'Symfony\Component\Process\ProcessUtils::escapeArgument',
163-
$commandline
164-
));
165-
}
166-
167-
$process = new Process($commandline);
157+
$process = new Process(array_merge([$options['command'], $command], $args));
168158
$process->setEnv($options['environment_variables']);
169159
$process->setTimeout($options['process_timeout']);
170160
$process->setIdleTimeout($options['process_timeout']);

0 commit comments

Comments
 (0)