mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-01-14 08:30:37 +00:00
the --insecure option was set to git, but it should be set at curl
This commit is contained in:
parent
dbcb20bff7
commit
8aac8bf174
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user