From: epriestley Date: Wed, 31 Oct 2012 18:50:43 +0000 (-0700) Subject: Fix `arc diff --raw` X-Git-Tag: conduit-6~48 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=24405e0e861f87817b4e230f5d762ecf1c009fee;p=arcanist.git Fix `arc diff --raw` Summary: I broke this in D3750. Calling `getRepositoryAPI()` triggers a check for workflow requirement of the repository API. Instead, we should just check if we alreayd have one. Test Plan: Ran `cat x | arc diff --raw`. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T1998 Differential Revision: https://secure.phabricator.com/D3848 --- diff --git a/src/workflow/ArcanistBaseWorkflow.php b/src/workflow/ArcanistBaseWorkflow.php index 40b851f1..7eb05219 100644 --- a/src/workflow/ArcanistBaseWorkflow.php +++ b/src/workflow/ArcanistBaseWorkflow.php @@ -1335,7 +1335,7 @@ abstract class ArcanistBaseWorkflow { protected function newDiffParser() { $parser = new ArcanistDiffParser(); - if ($this->getRepositoryAPI()) { + if ($this->repositoryAPI) { $parser->setRepositoryAPI($this->getRepositoryAPI()); } $parser->setWriteDiffOnFailure(true);