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