Page MenuHomePhabricator

D18825.diff
No OneTemporary

D18825.diff

diff --git a/src/applications/diffusion/config/PhabricatorDiffusionConfigOptions.php b/src/applications/diffusion/config/PhabricatorDiffusionConfigOptions.php
--- a/src/applications/diffusion/config/PhabricatorDiffusionConfigOptions.php
+++ b/src/applications/diffusion/config/PhabricatorDiffusionConfigOptions.php
@@ -101,7 +101,7 @@
->setBoolOptions(
array(
pht('Allow HTTP Basic Auth'),
- pht('Disable HTTP Basic Auth'),
+ pht('Disallow HTTP Basic Auth'),
))
->setSummary(pht('Enable HTTP Basic Auth for repositories.'))
->setDescription(
@@ -115,6 +115,19 @@
"barrier to attackers than SSH does.\n\n".
"Consider using SSH for authenticated access to repositories ".
"instead of HTTP.")),
+ $this->newOption('diffusion.allow-git-lfs', 'bool', false)
+ ->setBoolOptions(
+ array(
+ pht('Allow Git LFS'),
+ pht('Disallow Git LFS'),
+ ))
+ ->setLocked(true)
+ ->setSummary(pht('Allow Git Large File Storage (LFS).'))
+ ->setDescription(
+ pht(
+ 'Phabricator supports Git LFS, a Git extension for storing large '.
+ 'files alongside a repository. Activate this setting to allow '.
+ 'the extension to store file data in Phabricator.')),
$this->newOption('diffusion.ssh-user', 'string', null)
->setLocked(true)
->setSummary(pht('Login username for SSH connections to repositories.'))
diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php
--- a/src/applications/repository/storage/PhabricatorRepository.php
+++ b/src/applications/repository/storage/PhabricatorRepository.php
@@ -1627,8 +1627,7 @@
return false;
}
- // TODO: Unprototype this feature.
- if (!PhabricatorEnv::getEnvConfig('phabricator.show-prototypes')) {
+ if (!PhabricatorEnv::getEnvConfig('diffusion.allow-git-lfs')) {
return false;
}

File Metadata

Mime Type
text/plain
Expires
Thu, May 9, 9:26 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6277938
Default Alt Text
D18825.diff (2 KB)

Event Timeline