/**
* @return string "ok", "no-git" or "wrong-version"
*/
private function tryGit()
{
try {
$gitVersion = SystemInfo::getGitVersion();
return self::gitMatchesMinimumRequiredVersion($gitVersion) ? "ok" : "wrong-version";
} catch (Exception $e) {
return "no-git";
}
}