@@ -1082,15 +1082,15 @@ export class Repository implements Disposable {
1082
1082
}
1083
1083
1084
1084
getConfig ( key : string ) : Promise < string > {
1085
- return this . run ( Operation . Config ( true ) , ( ) => this . repository . config ( 'local' , key ) ) ;
1085
+ return this . run ( Operation . Config ( true ) , ( ) => this . repository . config ( 'get' , ' local', key ) ) ;
1086
1086
}
1087
1087
1088
1088
getGlobalConfig ( key : string ) : Promise < string > {
1089
- return this . run ( Operation . Config ( true ) , ( ) => this . repository . config ( 'global' , key ) ) ;
1089
+ return this . run ( Operation . Config ( true ) , ( ) => this . repository . config ( 'get' , ' global', key ) ) ;
1090
1090
}
1091
1091
1092
1092
setConfig ( key : string , value : string ) : Promise < string > {
1093
- return this . run ( Operation . Config ( false ) , ( ) => this . repository . config ( 'local' , key , value ) ) ;
1093
+ return this . run ( Operation . Config ( false ) , ( ) => this . repository . config ( 'set' , ' local', key , value ) ) ;
1094
1094
}
1095
1095
1096
1096
log ( options ?: LogOptions & { silent ?: boolean } ) : Promise < Commit [ ] > {
@@ -1465,7 +1465,10 @@ export class Repository implements Disposable {
1465
1465
}
1466
1466
1467
1467
async deleteBranch ( name : string , force ?: boolean ) : Promise < void > {
1468
- await this . run ( Operation . DeleteBranch , ( ) => this . repository . deleteBranch ( name , force ) ) ;
1468
+ return this . run ( Operation . DeleteBranch , async ( ) => {
1469
+ await this . repository . deleteBranch ( name , force ) ;
1470
+ await this . repository . config ( 'unset' , 'local' , `branch.${ name } .vscode-merge-base` ) ;
1471
+ } ) ;
1469
1472
}
1470
1473
1471
1474
async renameBranch ( name : string ) : Promise < void > {
0 commit comments