simplify password repository setting
This commit is contained in:
parent
2829e9145d
commit
87dd4f96a3
6 changed files with 153 additions and 169 deletions
|
|
@ -64,6 +64,7 @@ struct GitCredential {
|
|||
return nil
|
||||
}
|
||||
Defaults[.gitRepositoryPasswordAttempts] += 1
|
||||
PasswordStore.shared.gitRepositoryPassword = newPassword
|
||||
credential = try? GTCredential(userName: userName, password: newPassword)
|
||||
case let .ssh(userName, password, publicKeyFile, privateKeyFile):
|
||||
credential = try? GTCredential(userName: userName, publicKeyURL: publicKeyFile, privateKeyURL: privateKeyFile, passphrase: password)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue