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 778490580f
commit 31a216450c

View file

@ -734,7 +734,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;