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

@ -142,7 +142,7 @@ class PasswordStore {
gitCredential = GitCredential(
credential: GitCredential.Credential.ssh(
userName: Defaults[.gitRepositoryUsername]!,
password: Utils.getPasswordFromKeychain(name: "gitRepositorySSHPrivateKeyPassphrase")!,
password: Utils.getPasswordFromKeychain(name: "gitRepositorySSHPrivateKeyPassphrase") ?? "",
publicKeyFile: Globals.sshPublicKeyURL,
privateKeyFile: Globals.sshPrivateKeyURL,
passwordNotSetCallback: nil