add --depth=1 to git clone command (#30)

This commit is contained in:
Qix 2018-06-17 07:23:55 -06:00 committed by Igor Klopov
parent 181d398c2a
commit 99d9460a05

View File

@ -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;