remove colon from git host in askpass arguments (#117230)

fixes #117152
This commit is contained in:
Felix Haase 2021-02-22 15:04:24 +01:00 committed by GitHub
parent ea2c1e5991
commit 524e119a8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ function main(argv: string[]): void {
const output = process.env['VSCODE_GIT_ASKPASS_PIPE'] as string;
const request = argv[2];
const host = argv[4].replace(/^["']+|["']+$/g, '');
const host = argv[4].replace(/^["']+|["':]+$/g, '');
const ipcClient = new IPCClient('askpass');
ipcClient.call({ request, host }).then(res => {