Determine hphp_home in test/run via __DIR__

The system() here was echoing to stdout.
Esse commit está contido em:
Jordan DeLong
2013-04-23 10:50:44 -07:00
commit de Sara Golemon
commit c39252e9f9
+1 -8
Ver Arquivo
@@ -57,14 +57,7 @@ function error($message) {
}
function hphp_home() {
static $ret;
if ($ret) { return $ret; }
$top_level = system('git rev-parse --show-toplevel', $status);
if ($status === 0) {
return $ret = rtrim($top_level, '/');
}
error("Couldn't determine the root of your fbcode repository.\n");
return __DIR__.'/../..';
}
function idx($array, $key, $default = null) {