public function getPath() { return $this->workingDir === null ? $this->gitDir : $this->workingDir; }
/** * @inheritdoc */ public function getName(Repository $repository) { $name = basename($repository->getPath()); if (preg_match('/^(.*)\\.git$/', $name, $vars)) { return $vars[1]; } return $name; }