Make the build task more efficient and robust

This commit is contained in:
Cam Findlay 2016-02-18 14:41:47 +13:00
parent cf30385d3c
commit a8b871faf5
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}");
}
/**