Changeset View
Changeset View
Standalone View
Standalone View
src/workingcopyidentity/ArcanistWorkingCopyIdentity.php
Context not available. | |||||
} | } | ||||
public function readLocalArcConfig() { | public function readLocalArcConfig() { | ||||
if (strlen($this->localMetaDir)) { | if (@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(); | ||||
Context not available. | |||||
$json = $json_encoder->encodeFormatted($config); | $json = $json_encoder->encodeFormatted($config); | ||||
$dir = $this->localMetaDir; | $dir = $this->localMetaDir; | ||||
if (!strlen($dir)) { | if (!@strlen($dir)) { | ||||
throw new Exception(pht('No working copy to write config into!')); | throw new Exception(pht('No working copy to write config into!')); | ||||
} | } | ||||
Context not available. |
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