mirror of
https://github.com/composer/composer
synced 2025-05-10 00:53:06 +00:00
ProcessExecutor::escape
This commit is contained in:
parent
7ae1430689
commit
d1d40502bf
17 changed files with 64 additions and 94 deletions
|
@ -20,7 +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 Composer\Util\ProcessExecutor;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
@ -439,7 +439,7 @@ EOT
|
|||
$finder = new ExecutableFinder();
|
||||
$gitBin = $finder->find('git');
|
||||
|
||||
$cmd = new Process(sprintf('%s config -l', ProcessUtil::escapeArgument($gitBin)));
|
||||
$cmd = new Process(sprintf('%s config -l', ProcessExecutor::escape($gitBin)));
|
||||
$cmd->run();
|
||||
|
||||
if ($cmd->isSuccessful()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue