Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
| Show First 20 Lines • Show All 1,621 Lines • ▼ Show 20 Lines | public function canUseGitLFS() { | ||||
| if (!$this->isGit()) { | if (!$this->isGit()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if (!$this->isHosted()) { | if (!$this->isHosted()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| // TODO: Unprototype this feature. | if (!PhabricatorEnv::getEnvConfig('diffusion.allow-git-lfs')) { | ||||
| if (!PhabricatorEnv::getEnvConfig('phabricator.show-prototypes')) { | |||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function getGitLFSURI($path = null) { | public function getGitLFSURI($path = null) { | ||||
| if (!$this->canUseGitLFS()) { | if (!$this->canUseGitLFS()) { | ||||
| ▲ Show 20 Lines • Show All 1,006 Lines • Show Last 20 Lines | |||||