Changeset View
Changeset View
Standalone View
Standalone View
src/workingcopyidentity/ArcanistWorkingCopyIdentity.php
Show First 20 Lines • Show All 283 Lines • ▼ Show 20 Lines | /* -( Config )------------------------------------------------------------- */ | ||||
* | * | ||||
* @task config | * @task config | ||||
*/ | */ | ||||
public function getLocalConfig($key, $default = null) { | public function getLocalConfig($key, $default = null) { | ||||
return idx($this->localConfig, $key, $default); | return idx($this->localConfig, $key, $default); | ||||
} | } | ||||
public function readLocalArcConfig() { | public function readLocalArcConfig() { | ||||
if (strlen($this->localMetaDir)) { | if ($this->localMetaDir !== null && strlen($this->localMetaDir)) { | ||||
$local_path = Filesystem::resolvePath('arc/config', $this->localMetaDir); | $local_path = Filesystem::resolvePath('arc/config', $this->localMetaDir); | ||||
$console = PhutilConsole::getConsole(); | $console = PhutilConsole::getConsole(); | ||||
if (Filesystem::pathExists($local_path)) { | if (Filesystem::pathExists($local_path)) { | ||||
$console->writeLog( | $console->writeLog( | ||||
"%s\n", | "%s\n", | ||||
pht( | pht( | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0