Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/protocol/DiffusionCommandEngine.php
Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | if ($this->isAnySSHProtocol()) { | ||||
if ($credential_phid) { | if ($credential_phid) { | ||||
$env['PHABRICATOR_CREDENTIAL'] = $credential_phid; | $env['PHABRICATOR_CREDENTIAL'] = $credential_phid; | ||||
} | } | ||||
if ($as_device) { | if ($as_device) { | ||||
$env['PHABRICATOR_AS_DEVICE'] = 1; | $env['PHABRICATOR_AS_DEVICE'] = 1; | ||||
} | } | ||||
} | } | ||||
$env += $repository->getPassthroughEnvironmentalVariables(); | |||||
return $env; | return $env; | ||||
} | } | ||||
public function isSSHProtocol() { | public function isSSHProtocol() { | ||||
return ($this->getProtocol() == 'ssh'); | return ($this->getProtocol() == 'ssh'); | ||||
} | } | ||||
public function isSVNProtocol() { | public function isSVNProtocol() { | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |