mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-02-03 10:28:22 +01:00
Couple of fixes from refactor
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
This commit is contained in:
parent
d85f7bee66
commit
359e1c2803
2 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ EOTEXT
|
||||||
// if we aren't in a .arcconfig directory. We probably still can't do much,
|
// if we aren't in a .arcconfig directory. We probably still can't do much,
|
||||||
// but commands can raise more detailed errors.
|
// but commands can raise more detailed errors.
|
||||||
$working_copy = ArcanistWorkingCopyIdentity::newFromPath(getcwd());
|
$working_copy = ArcanistWorkingCopyIdentity::newFromPath(getcwd());
|
||||||
if ($working_copy->getProjectRoot()) {
|
|
||||||
$configuration_manager = $this->getConfigurationManager();
|
$configuration_manager = $this->getConfigurationManager();
|
||||||
|
if ($working_copy->getProjectRoot()) {
|
||||||
$configuration_manager->setWorkingCopyIdentity($working_copy);
|
$configuration_manager->setWorkingCopyIdentity($working_copy);
|
||||||
$repository_api = ArcanistRepositoryAPI::newAPIFromConfigurationManager(
|
$repository_api = ArcanistRepositoryAPI::newAPIFromConfigurationManager(
|
||||||
$configuration_manager);
|
$configuration_manager);
|
||||||
|
|
Loading…
Add table
Reference in a new issue