fix compile error
This commit is contained in:
parent
407ce43a5e
commit
cb5d03296f
1 changed files with 2 additions and 2 deletions
|
@ -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()) });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue