Roll back libgit2

Avoid libgit2/libgit2#2021 for now, by moving to the point right before that PR was merged.