Skip to content

Commit b149a6d

Browse files
authored
Git - Improve branch publish prompt (microsoft#165949)
1 parent cf46b99 commit b149a6d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

extensions/git/src/commands.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2697,14 +2697,7 @@ export class CommandCenter {
26972697
if (!HEAD) {
26982698
return;
26992699
} else if (!HEAD.upstream) {
2700-
const branchName = HEAD.name;
2701-
const message = l10n.t('The branch "{0}" has no remote branch. Would you like to publish this branch?', branchName ?? '');
2702-
const yes = l10n.t('OK');
2703-
const pick = await window.showWarningMessage(message, { modal: true }, yes);
2704-
2705-
if (pick === yes) {
2706-
await this.publish(repository);
2707-
}
2700+
this._push(repository, { pushType: PushType.Push });
27082701
return;
27092702
}
27102703

0 commit comments

Comments
 (0)