Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chore] Check git host certificate explicitly
Problem: 'libgit2' now performs host certificate checking prior to connection to a git host through ssh. However, it only uses '~/.ssh/known_hosts' to get the list of known hosts, while in NixOS and home-manager known host files are defined in 'GlobalKnownHostsFile' and 'UserKnownHostsFile' attributes of the ssh config file. As a result, in some cases 'update-daemon' fails to check 'github.com' and 'gitlab.com' host certificates and throws an error. Solution: Explicitly check git host certificate against the list of known hosts from 'GlobalKnownHostsFile' and 'UserKnownHostsFile' taken from '/etc/ssh/ssh_config' and '~/.ssh/config' respectively using 'ssh2-rs'.
- Loading branch information