]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Couple of fixes from refactor
authorAviv Eyal <avivey@gmail.com>
Fri, 18 Oct 2013 23:41:50 +0000 (16:41 -0700)
committerepriestley <git@epriestley.com>
Fri, 18 Oct 2013 23:41:50 +0000 (16:41 -0700)
Test Plan: arc set-<tab> <enter> 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
src/workflow/ArcanistShellCompleteWorkflow.php

index ffd16f507e9ed1d30fb9a9955d547d2539937f71..3781cffaac0ff8290986ab71f660cf47ae8b46b2 100644 (file)
@@ -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);
index 266ff486c7f4141858aec012f15314654e4d6af0..69527f1fbe98248b20a683109bf9401c5498f63d 100644 (file)
@@ -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);