From d27790884242066415947a7d3f8eca51b4d4b8f8 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 19 Jun 2012 15:05:03 -0700 Subject: [PATCH] Minor, avoid branch loop nonsense for repositories not set to autoclose. See IRC. --- src/applications/repository/storage/PhabricatorRepository.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php index 745438e086..31ae83db3b 100644 --- a/src/applications/repository/storage/PhabricatorRepository.php +++ b/src/applications/repository/storage/PhabricatorRepository.php @@ -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'); }