Skip to content

Commit 7503938

Browse files
committed
Merge branch 'main' into aiday/positioningInlineChat
2 parents f25d7d9 + 3447686 commit 7503938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/git/src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function findSpecificGit(path: string, onValidate: (path: string) => boolean): P
7373
const child = cp.spawn(path, ['--version']);
7474
child.stdout.on('data', (b: Buffer) => buffers.push(b));
7575
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()) }));
76+
child.on('close', code => code ? e(new Error('Not found')) : c({ path, version: parseVersion(Buffer.concat(buffers).toString('utf8').trim()) }));
7777
});
7878
}
7979

0 commit comments

Comments
 (0)