Update to upstream libgit2
Merge pull request #180 from rowanj/update-libgit2

Update to upstream libgit2