This commit is contained in:
unknown
2020-08-08 14:05:51 -05:00
parent 6d913c4c14
commit b4c528cbfd
3 changed files with 9 additions and 1 deletions

View File

@@ -1225,6 +1225,7 @@ export class Repository implements Disposable {
const config = workspace.getConfiguration('git', Uri.file(this.root));
const fetchOnPull = config.get<boolean>('fetchOnPull');
const tags = config.get<boolean>('pullTags');
const pushTags = config.get<boolean>('pushTags');
const supportCancellation = config.get<boolean>('supportCancellation');
const fn = fetchOnPull
@@ -1252,7 +1253,7 @@ export class Repository implements Disposable {
const shouldPush = this.HEAD && (typeof this.HEAD.ahead === 'number' ? this.HEAD.ahead > 0 : true);
if (shouldPush) {
await this._push(remoteName, pushBranch);
await this._push(remoteName, pushBranch, false, pushTags);
}
});
});