source-controller/pkg/git/libgit2
Sunny 10d262032c libgit2: handle EOF in parseKnownHosts()
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>
2021-10-28 17:35:46 +05:30
..
checkout.go git: styling nitpicks 2021-10-27 00:43:31 +05:30
checkout_test.go gogit: allow checkout of commit without branch 2021-10-27 00:43:31 +05:30
libgit2.go gogit: allow checkout of commit without branch 2021-10-27 00:43:31 +05:30
transport.go libgit2: handle EOF in parseKnownHosts() 2021-10-28 17:35:46 +05:30
transport_test.go libgit2: handle EOF in parseKnownHosts() 2021-10-28 17:35:46 +05:30