Split the difference on remote URIs.
This is slightly trickier than D8082. Auditors: btrahan
This commit is contained in:
		| @@ -486,21 +486,27 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   public function getNormalizedPath() { |   public function getNormalizedPath() { | ||||||
|  |     if ($this->isHosted()) { | ||||||
|  |       $uri = PhabricatorEnv::getProductionURI($this->getURI()); | ||||||
|  |     } else { | ||||||
|  |       $uri = $this->getRemoteURI(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|     switch ($this->getVersionControlSystem()) { |     switch ($this->getVersionControlSystem()) { | ||||||
|       case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT: |       case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT: | ||||||
|         $normalized_uri = new PhabricatorRepositoryURINormalizer( |         $normalized_uri = new PhabricatorRepositoryURINormalizer( | ||||||
|           PhabricatorRepositoryURINormalizer::TYPE_GIT, |           PhabricatorRepositoryURINormalizer::TYPE_GIT, | ||||||
|           $this->getRemoteURI()); |           $uri); | ||||||
|         break; |         break; | ||||||
|       case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN: |       case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN: | ||||||
|         $normalized_uri = new PhabricatorRepositoryURINormalizer( |         $normalized_uri = new PhabricatorRepositoryURINormalizer( | ||||||
|           PhabricatorRepositoryURINormalizer::TYPE_SVN, |           PhabricatorRepositoryURINormalizer::TYPE_SVN, | ||||||
|           $this->getRemoteURI()); |           $uri); | ||||||
|         break; |         break; | ||||||
|       case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL: |       case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL: | ||||||
|         $normalized_uri = new PhabricatorRepositoryURINormalizer( |         $normalized_uri = new PhabricatorRepositoryURINormalizer( | ||||||
|           PhabricatorRepositoryURINormalizer::TYPE_MERCURIAL, |           PhabricatorRepositoryURINormalizer::TYPE_MERCURIAL, | ||||||
|           $this->getRemoteURI()); |           $uri); | ||||||
|         break; |         break; | ||||||
|       default: |       default: | ||||||
|         throw new Exception("Unrecognized version control system."); |         throw new Exception("Unrecognized version control system."); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 epriestley
					epriestley