Libgit2 corrections

This fixes some errors I noticed while going over the libgit2 overview.