Fix a bug, that caused the app to crash if ssh passphrase is not set.

This commit is contained in:
Evgeny Morozov 2017-02-23 18:39:43 +03:00
parent 586e86052b
commit 4034050ce0
3 changed files with 3 additions and 3 deletions

View file

@ -116,7 +116,7 @@ class SettingsTableViewController: UITableViewController {
gitCredential = GitCredential(
credential: GitCredential.Credential.ssh(
userName: username,
password: Utils.getPasswordFromKeychain(name: "gitRepositorySSHPrivateKeyPassphrase")!,
password: Utils.getPasswordFromKeychain(name: "gitRepositorySSHPrivateKeyPassphrase") ?? "",
publicKeyFile: Globals.sshPublicKeyURL,
privateKeyFile: Globals.sshPrivateKeyURL,
passwordNotSetCallback: self.requestSshKeyPassword