Skip to content

Commit f8ff8a8

Browse files
authored
Do not overwrite users environment variables
These environment variables are currently enforced by vscode and there is no way to overwrite them. Turning this arround allows the user to use a custom GIT_ASKPASS inside vscode (e.g. /usr/bin/ksshaskpass for kde wallet). Fixes #111839
1 parent 81ae94a commit f8ff8a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/git/src/askpass.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ export class Askpass implements IIPCHandler {
8080
}
8181

8282
return {
83-
...this.ipc.getEnv(),
8483
GIT_ASKPASS: path.join(__dirname, 'askpass.sh'),
8584
VSCODE_GIT_ASKPASS_NODE: process.execPath,
86-
VSCODE_GIT_ASKPASS_MAIN: path.join(__dirname, 'askpass-main.js')
85+
VSCODE_GIT_ASKPASS_MAIN: path.join(__dirname, 'askpass-main.js'),
86+
...this.ipc.getEnv()
8787
};
8888
}
8989

0 commit comments

Comments
 (0)