Repository navigation
making authentication failures 1000% better - #790
Conversation
| 'GIT_ASKPASS': getAskPassTrampolinePath(), | ||
| // supported since Git 2.3, this is used to ensure we never interactively prompt | ||
| // for credentials - even as a fallback | ||
| 'GIT_TERMINAL_PROMPT': '0', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
…l fast instead of stacking errors
|
So there should be two, more accurate errors now appearing whenever you fetch/push/pull. These are essentially the underlying Git messages, but as we're now controlling the entire auth process we can now do some better poking at messages. You don't have the right credentials: The remote isn't valid, or it doesn't respond like it's a remote repository: @cheshire137 I have a theory that #772 is related to the account being added, but us not having a valid user token to send when making authenticated requests, but I haven't been able to understand how the app can get into that state. If we're all good, you shouldn't see an error here after this lands on the beta channel - but I think you're still going to see the "Authentication Failed" message for now. @desktop/core I think there's some additional work here to do around getting the user to sign in when authentication fails. I've opened #851 and #852 to track things that may need to be in-scope for the beta... |
|
Ready for review 🦅 |
| return gitStore.performFailableOperation(() => { | ||
| const setUpstream = branch.upstream ? false : true | ||
| return pushRepo(repository, user, remote.name, branch.name, setUpstream) | ||
| .then(() => this._refreshRepository(repository)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| successExitCodes: new Set([ 0 ]), | ||
| env: envForAuthentication(user), | ||
| expectedErrors: new Set([ | ||
| GitError.HTTPSAuthenticationFailed, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.



Fixes #772
Fixes #828
GIT_ASKPASSeven if no account setup