This is libgit 1.8.3

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Fix leak repository if read index fails

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Free the critical section even if the repository is null
TGitCache: When TGITCACHECOMMAND_RELEASE is received, release it and close repository ASAP

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>