Merge pull request #117 from silverstripe/improvedtask

Make the build task more efficient and robust
This commit is contained in:
Christopher Pitt 2016-02-18 14:45:38 +13:00
commit 8018da2e0d
1 changed files with 1 additions and 3 deletions

View File

@ -94,11 +94,9 @@ class RefreshMarkdownTask extends BuildTask
$this->printLine("cloning " . $remote . "/" . $branch);
chdir("{$path}/src");
exec("git clone -q git://github.com/{$remote}.git {$folder}_{$branch} --quiet");
exec("git clone -q https://github.com/{$remote}.git {$folder}_{$branch} --depth 1 --branch {$branch} --single-branch");
chdir("{$path}/src/{$folder}_{$branch}");
exec("git fetch origin");
exec("git checkout -q origin/{$branch}");
}
/**