1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 08:42:40 +01:00

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
This commit is contained in:
epriestley 2012-10-31 11:50:43 -07:00
parent 475a576fdc
commit 24405e0e86

View file

@ -1335,7 +1335,7 @@ abstract class ArcanistBaseWorkflow {
protected function newDiffParser() { protected function newDiffParser() {
$parser = new ArcanistDiffParser(); $parser = new ArcanistDiffParser();
if ($this->getRepositoryAPI()) { if ($this->repositoryAPI) {
$parser->setRepositoryAPI($this->getRepositoryAPI()); $parser->setRepositoryAPI($this->getRepositoryAPI());
} }
$parser->setWriteDiffOnFailure(true); $parser->setWriteDiffOnFailure(true);