From 8aac8bf174a8a3cc2c0fb755cf8f017a037094c1 Mon Sep 17 00:00:00 2001 From: Daniel Dimitrov Date: Sat, 31 Oct 2015 11:28:05 +0100 Subject: [PATCH] the --insecure option was set to git, but it should be set at curl --- RoboFile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RoboFile.php b/RoboFile.php index ed81219..e075f4f 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -225,9 +225,8 @@ class RoboFile extends \Robo\Tasks private function buildGitCloneCommand() { $branch = empty($this->configuration->branch) ? 'staging' : $this->configuration->branch; - $insecure = $this->isWindows() ? ' --insecure' : ''; - return "git" . $this->extension . " clone -b $branch $insecure --single-branch --depth 1 https://github.com/joomla/joomla-cms.git tests/cache"; + return "git" . $this->extension . " clone -b $branch --single-branch --depth 1 https://github.com/joomla/joomla-cms.git tests/cache"; } /** @@ -299,7 +298,8 @@ class RoboFile extends \Robo\Tasks // Make sure we have Composer if (!file_exists('./composer.phar')) { - $this->_exec('curl --retry 3 --retry-delay 5 -sS https://getcomposer.org/installer | php'); + $insecure = $this->isWindows() ? ' --insecure' : ''; + $this->_exec('curl ' . $insecure . ' --retry 3 --retry-delay 5 -sS https://getcomposer.org/installer | php'); } }