| parseKnownHosts() uses golang.org/x/crypto/ssh's ParseKnownHosts() for parsing known hosts. It returns EOF error when the input is not a host public key, but a valid known_hosts content, like a comment line. With this fix, lines causing EOF error are skipped and the parsing of the known_hosts file continues. But invalid lines still cause parsing failure. Signed-off-by: Sunny <darkowlzz@protonmail.com> | ||
|---|---|---|
| .. | ||
| gogit | ||
| libgit2 | ||
| strategy | ||
| git.go | ||
| git_test.go | ||
| options.go | ||
| options_test.go | ||