hopefully compatible with libgit2 0.20