diff options
author | Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> | 2022-11-10 17:20:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 17:20:27 +0300 |
commit | b149a6de636ecea5678b08ab146ee6dd03949f96 (patch) | |
tree | 9df6695a663bf1030e64bf91178d31d0a319c188 | |
parent | cf46b990f707105d712aaa070af74ca12b6b90eb (diff) |
Git - Improve branch publish prompt (#165949)
-rw-r--r-- | extensions/git/src/commands.ts | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 4a2acd2f2dd..6477b95d4a1 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -2697,14 +2697,7 @@ export class CommandCenter { if (!HEAD) { return; } else if (!HEAD.upstream) { - const branchName = HEAD.name; - const message = l10n.t('The branch "{0}" has no remote branch. Would you like to publish this branch?', branchName ?? ''); - const yes = l10n.t('OK'); - const pick = await window.showWarningMessage(message, { modal: true }, yes); - - if (pick === yes) { - await this.publish(repository); - } + this._push(repository, { pushType: PushType.Push }); return; } |