Skip to content

Commit

Permalink
Make the build task more efficient and robust
Browse files Browse the repository at this point in the history
  • Loading branch information
camfindlay committed Feb 18, 2016
1 parent cf30385 commit a8b871f
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 a8b871f

Please sign in to comment.