1
0
Fork 0

OpenSSL is not required to clone git repos

pull/104/merge
Jordi Boggiano 2011-11-15 13:34:13 +01:00
parent 22a93e7273
commit b4ec1b36c4
1 changed files with 0 additions and 4 deletions

View File

@ -36,10 +36,6 @@ class GitDownloader implements DownloaderInterface
throw new \InvalidArgumentException('The given package is missing reference information'); throw new \InvalidArgumentException('The given package is missing reference information');
} }
if (!extension_loaded('openssl')) {
throw new \RuntimeException('You must enable the openssl extension to clone git repositories');
}
$url = escapeshellarg($package->getSourceUrl()); $url = escapeshellarg($package->getSourceUrl());
$ref = escapeshellarg($package->getSourceReference()); $ref = escapeshellarg($package->getSourceReference());
system(sprintf('git clone %s %s && cd %2$s && git reset --hard %s', $url, $path, $ref)); system(sprintf('git clone %s %s && cd %2$s && git reset --hard %s', $url, $path, $ref));