Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
| Show First 20 Lines • Show All 1,000 Lines • ▼ Show 20 Lines | if ($this->isGit()) { | ||||
| $uri->setPath($uri->getPath().$this->getCloneName().'/'); | $uri->setPath($uri->getPath().$this->getCloneName().'/'); | ||||
| } | } | ||||
| $ssh_user = PhabricatorEnv::getEnvConfig('diffusion.ssh-user'); | $ssh_user = PhabricatorEnv::getEnvConfig('diffusion.ssh-user'); | ||||
| if ($ssh_user) { | if ($ssh_user) { | ||||
| $uri->setUser($ssh_user); | $uri->setUser($ssh_user); | ||||
| } | } | ||||
| $ssh_host = PhabricatorEnv::getEnvConfig('diffusion.ssh-host'); | |||||
| if (strlen($ssh_host)) { | |||||
| $uri->setDomain($ssh_host); | |||||
| } | |||||
| $uri->setPort(PhabricatorEnv::getEnvConfig('diffusion.ssh-port')); | $uri->setPort(PhabricatorEnv::getEnvConfig('diffusion.ssh-port')); | ||||
| return $uri; | return $uri; | ||||
| } | } | ||||
| /** | /** | ||||
| * Get the repository's HTTP clone/checkout URI, if one exists. | * Get the repository's HTTP clone/checkout URI, if one exists. | ||||
| ▲ Show 20 Lines • Show All 816 Lines • Show Last 20 Lines | |||||