add --depth=1 to git clone command (#30)
This commit is contained in:
parent
181d398c2a
commit
99d9460a05
@ -21,7 +21,7 @@ const nodeRepo = 'https://github.com/nodejs/node';
|
||||
|
||||
async function gitClone () {
|
||||
log.info('Cloning Node.js repository from GitHub...');
|
||||
const args = [ 'clone', '--bare', '--progress', nodeRepo, 'node/.git' ];
|
||||
const args = [ 'clone', '--bare', '--progress', '--depth=1', nodeRepo, 'node/.git' ];
|
||||
const promise = spawn('git', args, { cwd: buildPath });
|
||||
progress(promise, thresholds('clone'));
|
||||
await promise;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user