Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14761616
D18825.id45180.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D18825.id45180.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 2:29 AM (16 h, 48 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7038618
Default Alt Text
D18825.id45180.diff (2 KB)
Attached To
Mode
D18825: Move the Git LFS gate to dedicated (non-prototype) config
Attached
Detach File
Event Timeline
Log In to Comment