fix compile error

This commit is contained in:
Joao 2017-09-04 11:10:34 +02:00
parent 407ce43a5e
commit cb5d03296f

View file

@ -82,12 +82,12 @@ function findGitDarwin(): Promise<IGit> {
function getVersion(path: string) {
// make sure git executes
cp.exec('git --version', (err: Error, stdout: any) => {
cp.exec('git --version', (err, stdout) => {
if (err) {
return e('git not found');
}
return c({ path, version: parseVersion(stdout.toString('utf8').trim()) });
return c({ path, version: parseVersion(stdout.trim()) });
});
}