Some commands (like get-config) do not require a working copy at all. Recent changes prevented these commands from running outside a VCS working copy.
Let null mean "no working copy".
See also https://github.com/phacility/phabricator/issues/800.
Differential D11643
Make "no working copy" a more explicit "arc" VCS epriestley on Feb 3 2015, 1:26 PM. Authored by Tags None Referenced Files
Subscribers
Details Some commands (like get-config) do not require a working copy at all. Recent changes prevented these commands from running outside a VCS working copy. Let null mean "no working copy". See also https://github.com/phacility/phabricator/issues/800.
Diff Detail
Event Timeline
Comment Actions $vcs_type is falsey if you run outside of a working copy, like cd /tmp; arc get-config. That's the root issue here: doing that is currently broken. Comment Actions Haha, no problem. It's also confusing that $working_copy really means $working_directory_which_may_also_be_a_repository_working_copy. This is also an unusual use case for regular users of arc. |