don't spawn git on Windows

fixes #32739
This commit is contained in:
Joao Moreno
2017-11-10 17:50:01 +01:00
parent 6bf3d457ef
commit fe20886713
2 changed files with 19 additions and 15 deletions

View File

@@ -28,7 +28,7 @@ async function init(context: ExtensionContext, disposables: Disposable[]): Promi
const config = workspace.getConfiguration('git');
const enabled = config.get<boolean>('enabled') === true;
const pathHint = workspace.getConfiguration('git').get<string>('path');
const info = await findGit(pathHint);
const info = await findGit(pathHint, path => outputChannel.appendLine(localize('looking', "Looking for git in: {0}", path)));
const askpass = new Askpass();
const env = await askpass.getEnv();
const git = new Git({ gitPath: info.path, version: info.version, env });