mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +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:
parent
475a576fdc
commit
24405e0e86
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue