See https://github.com/libgit2/libgit2sharp/pull/612/files#r9745498