mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +01:00
Git - gif config should not throw if key does not exist (#200358)
This commit is contained in:
@@ -1474,8 +1474,9 @@ export class Repository implements Disposable {
|
||||
// Git config
|
||||
try {
|
||||
const mergeBase = await this.getConfig(branchMergeBaseConfigKey);
|
||||
if (mergeBase) {
|
||||
return await this.getBranch(mergeBase);
|
||||
if (mergeBase !== '') {
|
||||
const mergeBaseBranch = await this.getBranch(mergeBase);
|
||||
return mergeBaseBranch;
|
||||
}
|
||||
} catch (err) { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user