fix bugs of ssh key authentication method
This commit is contained in:
parent
6f7d62dc60
commit
07da510ccb
4 changed files with 18 additions and 6 deletions
|
|
@ -30,6 +30,7 @@ struct GitCredential {
|
|||
print("username \(userName), password \(password)")
|
||||
credential = try? GTCredential(userName: userName, password: password)
|
||||
case let .ssh(userName, password, publicKeyFile, privateKeyFile):
|
||||
print("username \(userName), password \(password), publicKeyFile \(publicKeyFile), privateKeyFile \(privateKeyFile)")
|
||||
credential = try? GTCredential(userName: userName, publicKeyURL: publicKeyFile, privateKeyURL: privateKeyFile, passphrase: password)
|
||||
}
|
||||
return credential ?? GTCredential()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue