Fix getting invalid hash when 2nd time when CGit::GetHash() is called and UseLibgit2...