|
|
@ -27,6 +27,10 @@ class RepositoryGit extends RepositoryBase { |
|
|
|
|
|
|
|
$data['categories'][$id] = jsonMultilineStringsJoin($d1, array('exclude' => array(array('const')))); |
|
|
|
} |
|
|
|
|
|
|
|
if (preg_match("/^[0-9]{6} blob [0-9a-f]{40}\t((detailsBody|popupBody)\.html)$/", $r, $m)) { |
|
|
|
$data['templates'][$m[2]] = shell_exec("cd " . escapeShellArg($this->path) . "; git show HEAD:" . escapeShellArg($m[1])); |
|
|
|
} |
|
|
|
} |
|
|
|
pclose($d); |
|
|
|
|
|
|
|