mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +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:
parent
f158b41d9c
commit
f007ed6263
1 changed files with 0 additions and 4 deletions
|
@ -1000,10 +1000,6 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
|||
}
|
||||
|
||||
public function canMirror() {
|
||||
if (!$this->isHosted()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->isGit()) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue