1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 00:53:06 +00:00

#3297 ProcessUtil class using ProcessUtil of Symfony Console

This commit is contained in:
frederik 2014-09-24 17:18:15 +02:00
parent 4c58abbb76
commit 7ae1430689
16 changed files with 98 additions and 64 deletions

View file

@ -20,6 +20,7 @@ use Composer\Package\Version\VersionSelector;
use Composer\Repository\CompositeRepository;
use Composer\Repository\PlatformRepository;
use Composer\Package\Version\VersionParser;
use Composer\Util\ProcessUtil;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
@ -438,7 +439,7 @@ EOT
$finder = new ExecutableFinder();
$gitBin = $finder->find('git');
$cmd = new Process(sprintf('%s config -l', escapeshellarg($gitBin)));
$cmd = new Process(sprintf('%s config -l', ProcessUtil::escapeArgument($gitBin)));
$cmd->run();
if ($cmd->isSuccessful()) {