repo git: Report unknown host as authentication error. Closes #1542

This commit is contained in:
Hylke Bons 2014-10-29 00:42:44 +01:00
parent a11a5a928a
commit 338d18df55

View file

@ -731,7 +731,8 @@ namespace SparkleLib.Git {
Error = ErrorStatus.HostIdentityChanged;
} else if (line.StartsWith ("Permission denied") ||
line.StartsWith ("ssh_exchange_identification: Connection closed by remote host")) {
line.StartsWith ("ssh_exchange_identification: Connection closed by remote host") ||
line.StartsWith ("The authenticity of host")) {
Error = ErrorStatus.AuthenticationFailed;