mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 21:40:55 +01:00
Minor, avoid branch loop nonsense for repositories not set to autoclose. See IRC.
This commit is contained in:
parent
606ca2831c
commit
d277908842
1 changed files with 4 additions and 0 deletions
|
@ -418,6 +418,10 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO {
|
|||
}
|
||||
|
||||
public function shouldAutocloseBranch($branch) {
|
||||
if ($this->getDetail('disable-autoclose', false)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->isBranchInFilter($branch, 'close-commits-filter');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue