Git - "Commit & Push" command now publishes the branch if there is no tracking remote (#153749)

"Commit & Push" command now publishes the branch if there is no tracking remote
This commit is contained in:
Ladislau Szomoru
2022-06-30 11:12:31 +02:00
committed by GitHub
parent 13f136fc46
commit 1230b7c300
+1 -1
View File
@@ -1625,7 +1625,7 @@ export class CommandCenter {
const postCommitCommand = config.get<'none' | 'push' | 'sync'>('postCommitCommand');
if ((opts.postCommitCommand === undefined && postCommitCommand === 'push') || opts.postCommitCommand === 'push') {
await this._push(repository, { pushType: PushType.Push, silent: true });
await this._push(repository, { pushType: PushType.Push });
}
if ((opts.postCommitCommand === undefined && postCommitCommand === 'sync') || opts.postCommitCommand === 'sync') {
await this.sync(repository);