diff --git a/git-extra/git-credential-helper-selector.c b/git-extra/git-credential-helper-selector.c
index 03b2c5315a..5f3c582c4a 100644
--- a/git-extra/git-credential-helper-selector.c
+++ b/git-extra/git-credential-helper-selector.c
@@ -491,7 +491,7 @@ static int discover_helpers(void)
selected_helper = 0;
if (!previously_selected_helper)
- previously_selected_helper = L"manager";
+ previously_selected_helper = L"manager-core";
for (p = env; *p; ) {
WCHAR *q = wcschr(p, L';');
diff --git a/installer/install.iss b/installer/install.iss
index 8723ac704e..9134471dfb 100644
--- a/installer/install.iss
+++ b/installer/install.iss
@@ -2038,14 +2038,14 @@ begin
GitCredentialManagerPage:=CreatePage(PrevPageID,'Choose a credential helper','Which credential helper should be configured?',TabOrder,Top,Left);
- // 1st choice
- RdbGitCredentialManager[GCM_None]:=CreateRadioButton(GitCredentialManagerPage,'None','Do not use a credential helper.',TabOrder,Top,Left);
+ // Git Credential Manager Core
+ RdbGitCredentialManager[GCM_Core]:=CreateRadioButton(GitCredentialManagerPage,'Git Credential Manager Core','(NEW!) Use the new, cross-platform version of the Git Credential Manager.'+#13+'See more information about the future of Git Credential Manager here.',TabOrder,Top,Left);
- // 2nd choice
- RdbGitCredentialManager[GCM_Classic]:=CreateRadioButton(GitCredentialManagerPage,'Git Credential Manager','The Git Credential Manager for Windows handles credentials e.g. for Azure'+#13+'DevOps and GitHub (requires .NET framework v4.5.1 or later).',TabOrder,Top,Left);
+ // Git Credential Manager for Windows
+ RdbGitCredentialManager[GCM_Classic]:=CreateRadioButton(GitCredentialManagerPage,'Git Credential Manager','(DEPRECATED) The Git Credential Manager for Windows handles credentials e.g.'+#13+'for Azure DevOps and GitHub (requires .NET framework v4.5.1 or later).',TabOrder,Top,Left);
- // 3rd choice
- RdbGitCredentialManager[GCM_Core]:=CreateRadioButton(GitCredentialManagerPage,'Git Credential Manager Core','(NEW!) Use the new, cross-platform version of the Git Credential Manager.'+#13+'See more information about the future of Git Credential Manager here.',TabOrder,Top,Left);
+ // No credential helper
+ RdbGitCredentialManager[GCM_None]:=CreateRadioButton(GitCredentialManagerPage,'None','Do not use a credential helper.',TabOrder,Top,Left);
// Restore the settings chosen during a previous install, if .NET 4.5.1
// or later is available.
@@ -2055,13 +2055,18 @@ begin
RdbGitCredentialManager[GCM_Core].Checked:=False;
RdbGitCredentialManager[GCM_Core].Enabled:=False;
end else begin
- case ReplayChoice('Use Credential Manager','Enabled') of
+ case ReplayChoice('Use Credential Manager','Core') of
'Disabled': RdbGitCredentialManager[GCM_None].Checked:=True;
'Enabled': RdbGitCredentialManager[GCM_Classic].Checked:=True;
'Core': RdbGitCredentialManager[GCM_Core].Checked:=True;
else
RdbGitCredentialManager[GCM_Classic].Checked:=True;
end;
+ // Auto-upgrade GCM to GCM Core in version v2.29.0
+ if RdbGitCredentialManager[GCM_Classic].Checked and (PreviousGitForWindowsVersion<>'') and IsDowngrade(PreviousGitForWindowsVersion,'2.29.0') then begin
+ RdbGitCredentialManager[GCM_Core].Checked:=True;
+ AddToSet(CustomPagesWithUnseenOptions,GitCredentialManagerPage);
+ end;
end;
(*
diff --git a/portable/release.sh b/portable/release.sh
index 66dbcd4ed3..5f1cf998a4 100755
--- a/portable/release.sh
+++ b/portable/release.sh
@@ -108,7 +108,7 @@ die "Could not generate file list"
mkdir -p "$SCRIPT_PATH/root/${etc_gitconfig%/*}" &&
cp /"$etc_gitconfig" "$SCRIPT_PATH/root/$etc_gitconfig" &&
git config -f "$SCRIPT_PATH/root/$etc_gitconfig" \
- credential.helper manager ||
+ credential.helper manager-core ||
die "Could not configure Git-Credential-Manager as default"
test 64 != $BITNESS ||
git config -f "$SCRIPT_PATH/root/$etc_gitconfig" --unset pack.packSizeLimit