]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix `arc diff --raw`
authorepriestley <git@epriestley.com>
Wed, 31 Oct 2012 18:50:43 +0000 (11:50 -0700)
committerepriestley <git@epriestley.com>
Wed, 31 Oct 2012 18:50:43 +0000 (11:50 -0700)
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

index 40b851f122e2485af468bf811d158a5d6f0a1e62..7eb05219b2640f448b4efcd43974b7c66dfb84f3 100644 (file)
@@ -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);