New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'git clone' asks for auth and then fails #558
Comments
You should first upgrade to the latest version (1.12.0). Now, the credentials aren't for cloning the repo itself (the repo is public, after all). Hub asks you for your credentials in general so it can cache the OAuth token for all future communication with the GitHub API on your behalf. This is a one-time operation. The 422 is weird and may indicate a bug with the GitHub API. Please upgrade hub to the newest version, try again, and paste me the error message if it happpens to contain more information than before. If the error is identical, you can use |
Confirmed upgrading fixed it. Thanks for the quick response. :) |
I'm getting a similar-looking problem, but with hub v1.12.0 already installed.
When I
|
When looking up an existing hub token among user's authorizations, be sure to fetch all results by following pagination links. Previously we just stopped at the 1st page, and if the token for hub didn't appear there we would try to create it, which would result in a 422 validation error if it already existed. References 1e4477b Fixes #531, fixes #558, fixes #563
I fixed the issue by deleting a token named "hub" from the Personal access tokens area of https://github.com/settings/applications. I don't remember how it got there, but
|
@alxndr This got fixed in v1.12.1 |
I have two confusions. First, that 'git clone' (hub clone) is asking me for credentials for a public repo. Ignoring that, even after providing credentials, it fails. I've doublechecked the two-factor code sent to my phone and it was correct.
hub version 1.11.2
The text was updated successfully, but these errors were encountered: