Lines Matching refs:headCommit
104 $headCommit = trim(file_get_contents(DOKU_INC . '.git/HEAD'));
105 if (strpos($headCommit, 'ref: ') === 0) {
107 $headCommit = substr($headCommit, 5);
108 $pathToHead = DOKU_INC . '.git/' . $headCommit;
110 $headCommit = trim(file_get_contents($pathToHead));
113 if (!preg_match("~([[:xdigit:]]+) $headCommit~", $packedRefs, $matches)) {
117 $headCommit = $matches[1];
120 // At this point $headCommit is a SHA
121 $version['sha'] = $headCommit;
124 $subDir = substr($headCommit, 0, 2);
125 $fileName = substr($headCommit, 2);