1
0
Fork 0

Escaped git --reference argument

pull/5384/head
Luís Faceira 2015-12-09 18:18:39 +00:00 committed by Marco Villegas
parent 292bd3f6a3
commit 5dd35c590e
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class GitDownloader extends VcsDownloader implements DvcsDownloaderInterface
GitUtil::cleanEnv(); GitUtil::cleanEnv();
$path = $this->normalizePath($path); $path = $this->normalizePath($path);
$cachePath = $this->config->get('cache-vcs-dir').'/'.preg_replace('{[^a-z0-9.]}i', '-', $url).'/'; $cachePath = $this->config->get('cache-vcs-dir').'/'.preg_replace('{[^a-z0-9.]}i', '-', $url).'/';
$cacheOptions = file_exists($cachePath) ? $cacheOptions = '--reference '.$cachePath.' ' : ''; $cacheOptions = file_exists($cachePath) ? '--reference '.ProcessExecutor::escape($cachePath).' ' : '';
$ref = $package->getSourceReference(); $ref = $package->getSourceReference();
$flag = Platform::isWindows() ? '/D ' : ''; $flag = Platform::isWindows() ? '/D ' : '';