]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix arcanist shell completion
authorJoshua Spence <josh@joshuaspence.com>
Fri, 19 Jun 2015 03:15:43 +0000 (13:15 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Fri, 19 Jun 2015 03:15:44 +0000 (13:15 +1000)
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

src/workflow/ArcanistShellCompleteWorkflow.php
src/workflow/ArcanistWorkflow.php

index 0a933506e6b76ab9f916f64a1944ff2fe1b3d478..6e6c8319b926cc2aa53ff91358872e3f77ffc912 100644 (file)
@@ -84,6 +84,9 @@ EOTEXT
           continue;
         }
 
+        $workflow->setArcanistConfiguration($this->getArcanistConfiguration());
+        $workflow->setConfigurationManager($this->getConfigurationManager());
+
         if ($vcs || $workflow->requiresWorkingCopy()) {
           $supported_vcs = $workflow->getSupportedRevisionControlSystems();
           if (!in_array($vcs, $supported_vcs)) {
index 5689b7ab20b0df158e09928e14645a83d65721d5..ca47c8ca27323fc1fe88690346a31d6c4bfce538 100644 (file)
@@ -53,8 +53,8 @@ abstract class ArcanistWorkflow extends Phobject {
   private $repositoryAPI;
   private $configurationManager;
   private $workingCopy;
-  private $arguments;
-  private $passedArguments;
+  private $arguments = array();
+  private $passedArguments = array();
   private $command;
 
   private $stashed;