Roll back libgit2

Avoid libgit2/libgit2#2021 for now.