Changeset View
Changeset View
Standalone View
Standalone View
scripts/arcanist.php
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | if ($need_working_copy && !$working_copy->getVCSType()) { | ||||
"copy."); | "copy."); | ||||
} | } | ||||
$configuration_manager->setWorkingCopyIdentity($working_copy); | $configuration_manager->setWorkingCopyIdentity($working_copy); | ||||
} | } | ||||
if ($force_conduit) { | if ($force_conduit) { | ||||
$conduit_uri = $force_conduit; | $conduit_uri = $force_conduit; | ||||
} else { | } else { | ||||
$project_conduit_uri = $configuration_manager->getProjectConfig( | $conduit_uri = $configuration_manager->getConfigFromAnySource( | ||||
'phabricator.uri'); | 'phabricator.uri'); | ||||
if ($project_conduit_uri) { | if ($conduit_uri === null) { | ||||
$conduit_uri = $project_conduit_uri; | $conduit_uri = $configuration_manager->getConfigFromAnySource( | ||||
} else { | 'default'); | ||||
$conduit_uri = idx($global_config, 'default'); | |||||
} | } | ||||
} | } | ||||
if ($conduit_uri) { | if ($conduit_uri) { | ||||
// Set the URI path to '/api/'. TODO: Originally, I contemplated letting | // Set the URI path to '/api/'. TODO: Originally, I contemplated letting | ||||
// you deploy Phabricator somewhere other than the domain root, but ended | // you deploy Phabricator somewhere other than the domain root, but ended | ||||
// up never pursuing that. We should get rid of all "/api/" silliness | // up never pursuing that. We should get rid of all "/api/" silliness | ||||
// in things users are expected to configure. This is already happening | // in things users are expected to configure. This is already happening | ||||
// to some degree, e.g. "arc install-certificate" does it for you. | // to some degree, e.g. "arc install-certificate" does it for you. | ||||
$conduit_uri = new PhutilURI($conduit_uri); | $conduit_uri = new PhutilURI($conduit_uri); | ||||
$conduit_uri->setPath('/api/'); | $conduit_uri->setPath('/api/'); | ||||
▲ Show 20 Lines • Show All 405 Lines • Show Last 20 Lines |