Skip to content

Commit

Permalink
Merge pull request #6497 from fxcoudert/ssh-agent-nonfatal
Browse files Browse the repository at this point in the history
Make failure to connect to ssh-agent non-fatal
  • Loading branch information
ethomson committed Feb 22, 2023
2 parents 11579d5 + d286952 commit c9387a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libgit2/transports/ssh.c
Expand Up @@ -246,8 +246,10 @@ static int ssh_agent_auth(LIBSSH2_SESSION *session, git_credential_ssh_key *c) {

rc = libssh2_agent_connect(agent);

if (rc != LIBSSH2_ERROR_NONE)
if (rc != LIBSSH2_ERROR_NONE) {
rc = LIBSSH2_ERROR_AUTHENTICATION_FAILED;
goto shutdown;
}

rc = libssh2_agent_list_identities(agent);

Expand Down

0 comments on commit c9387a6

Please sign in to comment.