Synced libgit2 with upstream

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Do not leak git_config instances

Signed-off-by: Sven Strickroth <email@cs-ware.de>