path, ':', 1)) { $this->path = substr($this->path, 1); $this->path = ltrim($this->path, '/'); } } public function getCommit() { if ($this->commit) { return $this->commit; } if (!$this->loadedCommit) { $this->loadedCommit = id(new PhabricatorRepositoryCommit())->loadOneWhere( 'repositoryID = %d ORDER BY epoch DESC LIMIT 1', $this->getRepository()->getID())->getCommitIdentifier(); } return $this->loadedCommit; } }