mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 08:12:40 +01:00
Pass the file contents instead of the file path to phutil_json_decode
.
Summary: See D9681#22. Test Plan: Created an empty `.git/arc/config` file... no exception was thrown. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9704
This commit is contained in:
parent
750a94e89f
commit
108a4dc9e6
1 changed files with 2 additions and 1 deletions
|
@ -311,7 +311,8 @@ final class ArcanistWorkingCopyIdentity {
|
|||
$local_path));
|
||||
|
||||
try {
|
||||
return phutil_json_decode($local_path);
|
||||
$json = Filesystem::readFile($local_path);
|
||||
return phutil_json_decode($json);
|
||||
} catch (PhutilJSONParserException $ex) {
|
||||
throw new PhutilProxyException(
|
||||
pht("Failed to parse '%s' as JSON.", $local_path),
|
||||
|
|
Loading…
Reference in a new issue