mirror of
https://github.com/truenas/scale-build.git
synced 2026-02-14 23:18:59 +00:00
NAS-138912 / 26.04 / decrease build times by ~8-9mins (#960)
* decrease build times * whoops missing --depth 1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user