Merge pull request #117 from silverstripe/improvedtask
Make the build task more efficient and robust
This commit is contained in:
commit
8018da2e0d
|
@ -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}");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue