mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 06:51:53 +01:00
Git - gif config should not throw if key does not exist (#200358)
This commit is contained in:
@@ -1017,8 +1017,14 @@ export class Repository {
|
||||
args.push(value);
|
||||
}
|
||||
|
||||
const result = await this.exec(args, options);
|
||||
return result.stdout.trim();
|
||||
try {
|
||||
const result = await this.exec(args, options);
|
||||
return result.stdout.trim();
|
||||
}
|
||||
catch (err) {
|
||||
this.logger.warn(`git config failed: ${err.message}`);
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
async getConfigs(scope: string): Promise<{ key: string; value: string }[]> {
|
||||
|
||||
Reference in New Issue
Block a user