From a8b871faf5d409ec72a5fc949c92f954d5c76981 Mon Sep 17 00:00:00 2001 From: Cam Findlay Date: Thu, 18 Feb 2016 14:41:47 +1300 Subject: [PATCH] Make the build task more efficient and robust --- app/code/RefreshMarkdownTask.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/code/RefreshMarkdownTask.php b/app/code/RefreshMarkdownTask.php index bf18556..bed7d8e 100644 --- a/app/code/RefreshMarkdownTask.php +++ b/app/code/RefreshMarkdownTask.php @@ -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}"); } /**