skip auth only for auto fetch

related to #72615
This commit is contained in:
Joao Moreno
2019-10-17 16:19:26 +02:00
parent 612b072362
commit f367d0fe20
4 changed files with 14 additions and 5 deletions

View File

@@ -28,6 +28,10 @@ function main(argv: string[]): void {
return fatal('Missing pipe');
}
if (process.env['VSCODE_GIT_COMMAND'] === 'fetch' && !!process.env['VSCODE_GIT_FETCH_SILENT']) {
return fatal('Skip silent fetch commands');
}
const output = process.env['VSCODE_GIT_ASKPASS_PIPE'] as string;
const socketPath = process.env['VSCODE_GIT_ASKPASS_HANDLE'] as string;
const request = argv[2];