1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00

Fix arcanist shell completion

Summary: Fixes T8560.

Test Plan: Ran `arc shell-complete` outside of a working copy.

Reviewers: avivey, #blessed_reviewers, epriestley

Reviewed By: avivey, #blessed_reviewers, epriestley

Subscribers: avivey, epriestley, Korvin

Maniphest Tasks: T8560

Differential Revision: https://secure.phabricator.com/D13338
This commit is contained in:
Joshua Spence 2015-06-19 13:15:43 +10:00
parent 3414cbeda5
commit f06eea0d84
2 changed files with 5 additions and 2 deletions

View file

@ -84,6 +84,9 @@ EOTEXT
continue; continue;
} }
$workflow->setArcanistConfiguration($this->getArcanistConfiguration());
$workflow->setConfigurationManager($this->getConfigurationManager());
if ($vcs || $workflow->requiresWorkingCopy()) { if ($vcs || $workflow->requiresWorkingCopy()) {
$supported_vcs = $workflow->getSupportedRevisionControlSystems(); $supported_vcs = $workflow->getSupportedRevisionControlSystems();
if (!in_array($vcs, $supported_vcs)) { if (!in_array($vcs, $supported_vcs)) {

View file

@ -53,8 +53,8 @@ abstract class ArcanistWorkflow extends Phobject {
private $repositoryAPI; private $repositoryAPI;
private $configurationManager; private $configurationManager;
private $workingCopy; private $workingCopy;
private $arguments; private $arguments = array();
private $passedArguments; private $passedArguments = array();
private $command; private $command;
private $stashed; private $stashed;