]> khamidou — GitHub mirrors - arcanist.git/commit
fix tab complete for out-of-workdir
authorAviv Eyal <avivey@gmail.com>
Wed, 26 Mar 2014 00:32:58 +0000 (17:32 -0700)
committerepriestley <git@epriestley.com>
Wed, 26 Mar 2014 00:33:23 +0000 (17:33 -0700)
commitd0bab7f34aabbf3a6f64c9359370362338e515fd
tree8feee84106a8da6a4e0ee1738ddd6d1213672830
parent46fe94db9f8ceed308ab589360d5add581ab3ed9
fix tab complete for out-of-workdir

Summary:
see https://github.com/facebook/phabricator/issues/546 - arc complete blows up when not
in a workdir.

There's no "is ArcanistWorkingCopyIdentity object valid" method, but getVCSType() looks like the
closest match.

git grep for `getProjectRoot` didn't reveal any more problmatic call sites.

Test Plan: `arc [tab] [tab]`

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D8578
scripts/arcanist.php
src/workflow/ArcanistShellCompleteWorkflow.php