#ifdef PLATFORM_WIN32 String GetInternalGitPath() { return GetExeDirFile("bin/mingit/cmd/git.exe"); } bool HasGit() { String dummy; static bool b = FileExists(GetInternalGitPath()) || Sys("git", dummy) >= 0; return b; } #else bool HasGit() { String dummy; static bool b = HostSys("git", dummy) >= 0; return b; } #endif
Report message to a moderator