fetcher git: show error messages when host key has changed
This commit is contained in:
parent
77a15ab64c
commit
430b7f7a4b
|
@ -137,10 +137,18 @@ namespace SparkleLib.Git {
|
||||||
} else {
|
} else {
|
||||||
SparkleHelpers.DebugInfo ("Fetcher", line);
|
SparkleHelpers.DebugInfo ("Fetcher", line);
|
||||||
|
|
||||||
if (line.StartsWith ("fatal:", true, null) ||
|
line = line.Trim (new char [] {' ', '@'});
|
||||||
line.StartsWith ("error:", true, null)) {
|
|
||||||
|
if (line.StartsWith ("fatal:", StringComparison.InvariantCultureIgnoreCase) ||
|
||||||
|
line.StartsWith ("error:", StringComparison.InvariantCultureIgnoreCase)) {
|
||||||
|
|
||||||
base.errors.Add (line);
|
base.errors.Add (line);
|
||||||
|
|
||||||
|
} else if (line.StartsWith ("WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!")) {
|
||||||
|
base.errors.Add ("warning: Remote host identification has changed!");
|
||||||
|
|
||||||
|
} else if (line.StartsWith ("WARNING: POSSIBLE DNS SPOOFING DETECTED!")) {
|
||||||
|
base.errors.Add ("warning: Possible DNS spoofing detected!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue