fix typo bug

This commit is contained in:
Bob Sun 2017-02-02 15:02:25 +08:00
parent 2fd374fbdc
commit 302f544ddb
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -31,7 +31,7 @@ class SettingsTableViewController: UITableViewController {
SVProgressHUD.setDefaultMaskType(.black)
SVProgressHUD.show(withStatus: "Prepare Repository")
var gitCredential: GitCredential
if password == "Password" {
if auth == "Password" {
gitCredential = GitCredential(credential: GitCredential.Credential.http(userName: username, password: password))
} else {
gitCredential = GitCredential(credential: GitCredential.Credential.ssh(userName: username, password: Defaults[.gitRepositorySSHPrivateKeyPassphrase]!, publicKeyFile: Globals.shared.sshPublicKeyPath, privateKeyFile: Globals.shared.sshPrivateKeyPath))