Handle libgit exception when calling GitRev::GetCommit()