You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
azrepos: fall back to OAuth when org policy blocks PAT creation
When an Azure DevOps organization has disabled PAT creation via the
DisablePatCreationPolicyViolation policy, GCM previously surfaced a raw
fatal error with no guidance. This change catches that specific error,
falls back to OAuth for the current invocation, and prints a clear
warning with the exact git config command needed to make OAuth permanent.
A `_forcedOAuth` instance flag ensures that StoreCredentialAsync and
EraseCredentialAsync use the OAuth path consistently within the same
process, working around the Settings cache which is populated once per
invocation.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments