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> |
||
|---|---|---|
| .. | ||
| checkout.go | ||
| checkout_test.go | ||
| libgit2.go | ||
| transport.go | ||
| transport_test.go | ||