Skip to content

Commit

Permalink
Merge pull request #117 from silverstripe/improvedtask
Browse files Browse the repository at this point in the history
Make the build task more efficient and robust
  • Loading branch information
assertchris committed Feb 18, 2016
2 parents cf30385 + a8b871f commit 8018da2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/code/RefreshMarkdownTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,9 @@ private function cloneRepository(array $repository)
$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}");
}

/**
Expand Down

0 comments on commit 8018da2

Please sign in to comment.