From f007ed6263296f711416703bfc2758e97ff3d371 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 25 Jan 2014 12:02:32 -0800 Subject: [PATCH] Allow repository mirrors even if the repository is hosted elsewhere. Summary: I'm not sure if this is desired functionality, but we happen to need mirroring of our repository which is not hosted by phabricator, and as far as I can tell the mirroring code does not depend on the hosting code. Test Plan: Setup mirror with SSH credentials to github, pushed changes to elsewhere hosted repository, commits got mirrored to github. Reviewers: epriestley Reviewed By: epriestley CC: Korvin, epriestley, aran Maniphest Tasks: T4338 Differential Revision: https://secure.phabricator.com/D7637 --- src/applications/repository/storage/PhabricatorRepository.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php index 141f7cdffd..1d028f9619 100644 --- a/src/applications/repository/storage/PhabricatorRepository.php +++ b/src/applications/repository/storage/PhabricatorRepository.php @@ -1000,10 +1000,6 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO } public function canMirror() { - if (!$this->isHosted()) { - return false; - } - if ($this->isGit()) { return true; }