Determine hphp_home in test/run via __DIR__
The system() here was echoing to stdout.
Esse commit está contido em:
+1
-8
@@ -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) {
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário