Little Tweak for an unnecessary exec() call

This commit is contained in:
Erik Amaru Ortiz
2014-03-25 13:56:45 -04:00
parent dd82fab1b6
commit e41ab89922

View File

@@ -154,7 +154,7 @@ class System
return false;
}
if (exec( "cd $dir && git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/^* \(.*\)$/(Branch \\1)/'", $target )) {
exec( "cd $dir && git describe", $target );
//exec( "cd $dir && git describe", $target ); ??? <-- thi is returning "fatal: No names found, cannot describe anything." on apache error log file
return implode( ' ', $target );
}
return false;