From 359e1c28033d3fa11be515427aa5a1631a85495a Mon Sep 17 00:00:00 2001 From: Aviv Eyal Date: Fri, 18 Oct 2013 16:41:50 -0700 Subject: [PATCH] Couple of fixes from refactor Test Plan: arc set- from a not-workspace. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7354 --- src/workflow/ArcanistSetConfigWorkflow.php | 2 +- src/workflow/ArcanistShellCompleteWorkflow.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/workflow/ArcanistSetConfigWorkflow.php b/src/workflow/ArcanistSetConfigWorkflow.php index ffd16f50..3781cffa 100644 --- a/src/workflow/ArcanistSetConfigWorkflow.php +++ b/src/workflow/ArcanistSetConfigWorkflow.php @@ -144,7 +144,7 @@ EOTEXT echo phutil_console_format(" Example: %s\n", $example); } if (strlen($value)) { - echo phutil_console_format(" User Setting: %s\n", $value); + echo phutil_console_format(" User Setting: %s\n", $value); } echo "\n"; echo phutil_console_wrap($help, 4); diff --git a/src/workflow/ArcanistShellCompleteWorkflow.php b/src/workflow/ArcanistShellCompleteWorkflow.php index 266ff486..69527f1f 100644 --- a/src/workflow/ArcanistShellCompleteWorkflow.php +++ b/src/workflow/ArcanistShellCompleteWorkflow.php @@ -59,8 +59,8 @@ EOTEXT // if we aren't in a .arcconfig directory. We probably still can't do much, // but commands can raise more detailed errors. $working_copy = ArcanistWorkingCopyIdentity::newFromPath(getcwd()); + $configuration_manager = $this->getConfigurationManager(); if ($working_copy->getProjectRoot()) { - $configuration_manager = $this->getConfigurationManager(); $configuration_manager->setWorkingCopyIdentity($working_copy); $repository_api = ArcanistRepositoryAPI::newAPIFromConfigurationManager( $configuration_manager); -- 2.43.0