public function readHead() { $file = $this->path . '/HEAD'; if (!is_file($file)) { throw new \RuntimeException('HEAD not found'); } $data = file_get_contents($file); return \gihp\Parser\File::importSymRef($this, $data); }