Update libgit2 source code (d28b2b7)

* Update libgit2 source code to commit
  d28b2b7a5ff608ce8f3da0e0b6a4c75afcf1e82c

* Apply patches to pass 'R CMD check git2r'

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>