mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
fix compile error
This commit is contained in:
@@ -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()) });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user