libgit2 updates, reset fixes, etc. etc.

This was on a branch for Xcode 5.0, while `master` had moved to Xcode 5.1.