public function removeRef(\gihp\Ref\Reference $ref) { list($name, $type, $ref) = \gihp\Parser\File::exportRef($ref); $file = $this->path . '/refs/' . $type . 's/' . $name; if (is_file($file)) { unlink($file); } else { throw new \RuntimeException('Ref not found'); } }