When cloning over SSH without a username, CredentialHelper::try_next_credential() always fails with the error "gonna try usernames later".
According to Cargo's utils.rs, username will always be None if CredentialType::USERNAME is enabled.
The git2_credentials system is supposed to fall back to another username on authentication failure, but it doesn't seem to work correctly because the error is returned first.
When cloning over SSH without a username,
CredentialHelper::try_next_credential()
always fails with the error "gonna try usernames later".According to Cargo's
utils.rs
,username
will always beNone
ifCredentialType::USERNAME
is enabled. Thegit2_credentials
system is supposed to fall back to another username on authentication failure, but it doesn't seem to work correctly because the error is returned first.