update libgit2 with the reset changes

Update libgit2 with the reset changes, so that I can rebase and remove corner case from #153