From d27b399ea92fe25d0161162b98983f8a176ad12f Mon Sep 17 00:00:00 2001 From: "Caleb St. John" <30729806+yocalebo@users.noreply.github.com> Date: Fri, 12 Dec 2025 18:18:29 -0500 Subject: [PATCH] NAS-138912 / 26.04 / decrease build times by ~8-9mins (#960) * decrease build times * whoops missing --depth 1 --- scale_build/packages/git.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scale_build/packages/git.py b/scale_build/packages/git.py index d175502..4faf65e 100644 --- a/scale_build/packages/git.py +++ b/scale_build/packages/git.py @@ -63,8 +63,15 @@ class GitPackageMixin: ) else: cmds = ( - ['clone', '--recurse', self.origin, self.source_path], - ['-C', self.source_path, 'checkout', branch], + [ + 'clone', + '--branch', branch, + '--single-branch', + '--no-tags', + '--depth', '1', + self.origin, + self.source_path + ], ) # We're doing retries here because at the time of writing this the iX network