We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f25d7d9 + 3447686 commit 7503938Copy full SHA for 7503938
extensions/git/src/git.ts
@@ -73,7 +73,7 @@ function findSpecificGit(path: string, onValidate: (path: string) => boolean): P
73
const child = cp.spawn(path, ['--version']);
74
child.stdout.on('data', (b: Buffer) => buffers.push(b));
75
child.on('error', cpErrorHandler(e));
76
- child.on('exit', code => code ? e(new Error('Not found')) : c({ path, version: parseVersion(Buffer.concat(buffers).toString('utf8').trim()) }));
+ child.on('close', code => code ? e(new Error('Not found')) : c({ path, version: parseVersion(Buffer.concat(buffers).toString('utf8').trim()) }));
77
});
78
}
79
0 commit comments