mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Git - update branch protection dialog message (#284037)
This commit is contained in:
@@ -2417,7 +2417,7 @@ export class CommandCenter {
|
|||||||
let pick: string | undefined = commitToNewBranch;
|
let pick: string | undefined = commitToNewBranch;
|
||||||
|
|
||||||
if (branchProtectionPrompt === 'alwaysPrompt') {
|
if (branchProtectionPrompt === 'alwaysPrompt') {
|
||||||
const message = l10n.t('You are trying to commit to a protected branch and you might not have permission to push your commits to the remote.\n\nHow would you like to proceed?');
|
const message = l10n.t('You are trying to commit to a protected branch. How would you like to proceed?');
|
||||||
const commit = l10n.t('Commit Anyway');
|
const commit = l10n.t('Commit Anyway');
|
||||||
|
|
||||||
pick = await window.showWarningMessage(message, { modal: true }, commitToNewBranch, commit);
|
pick = await window.showWarningMessage(message, { modal: true }, commitToNewBranch, commit);
|
||||||
|
|||||||
Reference in New Issue
Block a user