Update libgit2 to latest development

_Depends on libgit2/libgit2#1814._

See #238 for previous discussion.