fixup! Ignore /usr/bin/git if /usr/bin/xcode-select -p fails

This commit is contained in:
Ronald Wampler
2016-06-14 10:40:07 -04:00
parent 67e4378a1e
commit 2dbde1673b

View File

@@ -41,7 +41,7 @@ namespace scm
{
if(path == "/usr/bin/git")
{
std::string const xcodePath = io::exec("/usr/bin/xcode-select", "-p");
std::string const xcodePath = io::exec("/usr/bin/xcode-select", "-p", NULL);
if(!path::is_directory(text::trim(xcodePath, "\n")))
{
fprintf(stderr, "*** ignore %s because it appears to be a shim and Xcode is not installed\n", path.c_str());