Differential D20421 Diff 48774 src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
| Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | /* -( Discovering Git Repositories )--------------------------------------- */ | ||||
| /** | /** | ||||
| * @task git | * @task git | ||||
| */ | */ | ||||
| private function discoverGitCommits() { | private function discoverGitCommits() { | ||||
| $repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
| if (!$repository->isHosted()) { | |||||
| $this->verifyGitOrigin($repository); | |||||
| } | |||||
| $heads = id(new DiffusionLowLevelGitRefQuery()) | $heads = id(new DiffusionLowLevelGitRefQuery()) | ||||
| ->setRepository($repository) | ->setRepository($repository) | ||||
| ->execute(); | ->execute(); | ||||
| if (!$heads) { | if (!$heads) { | ||||
| // This repository has no heads at all, so we don't need to do | // This repository has no heads at all, so we don't need to do | ||||
| // anything. Generally, this means the repository is empty. | // anything. Generally, this means the repository is empty. | ||||
| return array(); | return array(); | ||||
| ▲ Show 20 Lines • Show All 797 Lines • Show Last 20 Lines | |||||