Prefix array key with working dir prefix

This commit is contained in:
Matt Pass
2019-10-15 22:50:52 +01:00
committed by GitHub
parent 63b056e8bc
commit fdecc45f41

View File

@@ -46,8 +46,9 @@ while(true) {
for ($i=0; $i<count($paths); $i++) {
if (strpos(mime_content_type(dirname(__FILE__)."/../../".$paths[$i]), "text") !== false) {
$content = shell_exec("cd .. && git show HEAD:".$paths[$i]);
$wd = dirname(dirname(dirname(__FILE__)));
if ($content !== "") {
$output[$paths[$i]] = [
$output[$wd."/".$paths[$i]] = [
"type" => "modified",
"lastHash" => "abc123",
"lastHashContent" => $content