From 24405e0e861f87817b4e230f5d762ecf1c009fee Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 31 Oct 2012 11:50:43 -0700 Subject: [PATCH] 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 --- src/workflow/ArcanistBaseWorkflow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.0