1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 01:10:58 +01:00

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
This commit is contained in:
Brecht Van Lommel 2014-01-25 12:02:32 -08:00 committed by epriestley
parent f158b41d9c
commit f007ed6263

View file

@ -1000,10 +1000,6 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
} }
public function canMirror() { public function canMirror() {
if (!$this->isHosted()) {
return false;
}
if ($this->isGit()) { if ($this->isGit()) {
return true; return true;
} }