mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +01:00
Enable "Allow Dangerous Changes" config for Mercurial repositories
Summary: Fixes T4357. The Mercurial commit hooks enforce dangerous change protection, but the UI doesn't actually let you configure it. This was just an oversight (I never went back and enabled it) -- allow it to be configured in the UI. Test Plan: Clicked "Edit Repository" on a hosted Mercurial repository, saw option to enable dangerous changes. Reviewers: btrahan, chad Reviewed By: chad CC: aran Maniphest Tasks: T4357 Differential Revision: https://secure.phabricator.com/D8108
This commit is contained in:
parent
4a6239d53c
commit
f585f6fddd
1 changed files with 1 additions and 1 deletions
|
@ -1050,7 +1050,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($this->isGit()) {
|
||||
if ($this->isGit() || $this->isHg()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue