Git - expose env through the extension API (#236598)

This commit is contained in:
Ladislau Szomoru
2024-12-19 16:27:08 +01:00
committed by GitHub
parent 986871f71a
commit f990dfb385
2 changed files with 13 additions and 3 deletions

View File

@@ -315,7 +315,7 @@ export interface IGitOptions {
gitPath: string;
userAgent: string;
version: string;
env?: any;
env?: { [key: string]: string };
}
function getGitErrorCode(stderr: string): string | undefined {
@@ -369,7 +369,8 @@ export class Git {
readonly path: string;
readonly userAgent: string;
readonly version: string;
private env: any;
readonly env: { [key: string]: string };
private commandsToLog: string[] = [];
private _onOutput = new EventEmitter();