Преглед на файлове

OpenSSL is not required to clone git repos

Jordi Boggiano преди 13 години
родител
ревизия
b4ec1b36c4
променени са 1 файла, в които са добавени 0 реда и са изтрити 4 реда
  1. 0 4
      src/Composer/Downloader/GitDownloader.php

+ 0 - 4
src/Composer/Downloader/GitDownloader.php

@@ -36,10 +36,6 @@ class GitDownloader implements DownloaderInterface
             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());
         $ref = escapeshellarg($package->getSourceReference());
         system(sprintf('git clone %s %s && cd %2$s && git reset --hard %s', $url, $path, $ref));