Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
781d73bf
Unverified
Commit
781d73bf
authored
Oct 28, 2017
by
Edward Thomson
Committed by
GitHub
Oct 28, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4357 from invenia/cv/ssh-passphrase-incorrect
Ask for SSH credentials again when passphrase is wrong
parents
70e4a31a
f2f14724
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/transports/ssh.c
+4
-2
No files found.
src/transports/ssh.c
View file @
781d73bf
...
...
@@ -419,8 +419,10 @@ static int _git_ssh_authenticate_session(
}
}
while
(
LIBSSH2_ERROR_EAGAIN
==
rc
||
LIBSSH2_ERROR_TIMEOUT
==
rc
);
if
(
rc
==
LIBSSH2_ERROR_PASSWORD_EXPIRED
||
rc
==
LIBSSH2_ERROR_AUTHENTICATION_FAILED
)
return
GIT_EAUTH
;
if
(
rc
==
LIBSSH2_ERROR_PASSWORD_EXPIRED
||
rc
==
LIBSSH2_ERROR_AUTHENTICATION_FAILED
||
rc
==
LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED
)
return
GIT_EAUTH
;
if
(
rc
!=
LIBSSH2_ERROR_NONE
)
{
if
(
!
giterr_last
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment