mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Move the Git LFS gate to dedicated (non-prototype) config
Summary: See PHI131. Ref T7789. Although this probably isn't 100% complete, there don't seem to be any actual, known, practical blocking issues remaining (everything is either heresay or not reproducible). Test Plan: Tried to push LFS locally, got blocked with a helpful message. Enabled setting, tried to push LFS locally, got a successful push. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T7789 Differential Revision: https://secure.phabricator.com/D18825
This commit is contained in:
parent
c9a0d68340
commit
e34b4bbd90
2 changed files with 15 additions and 3 deletions
|
@ -101,7 +101,7 @@ final class PhabricatorDiffusionConfigOptions
|
|||
->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 @@ final class PhabricatorDiffusionConfigOptions
|
|||
"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.'))
|
||||
|
|
|
@ -1627,8 +1627,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
|||
return false;
|
||||
}
|
||||
|
||||
// TODO: Unprototype this feature.
|
||||
if (!PhabricatorEnv::getEnvConfig('phabricator.show-prototypes')) {
|
||||
if (!PhabricatorEnv::getEnvConfig('diffusion.allow-git-lfs')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue