30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-03 06:50:49 +00:00

the --insecure option was set to git, but it should be set at curl

This commit is contained in:
Daniel Dimitrov 2015-10-31 11:28:05 +01:00
parent dbcb20bff7
commit 8aac8bf174

View File

@ -225,9 +225,8 @@ class RoboFile extends \Robo\Tasks
private function buildGitCloneCommand() private function buildGitCloneCommand()
{ {
$branch = empty($this->configuration->branch) ? 'staging' : $this->configuration->branch; $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 // Make sure we have Composer
if (!file_exists('./composer.phar')) 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');
} }
} }