]> khamidou — GitHub mirrors - arcanist.git/commit
Don't try to run didAbortWorkflow() if the user never provided a command
authorepriestley <git@epriestley.com>
Tue, 30 Oct 2012 17:44:49 +0000 (10:44 -0700)
committerepriestley <git@epriestley.com>
Tue, 30 Oct 2012 17:44:49 +0000 (10:44 -0700)
commit44842aeb25f5b985df3bec5dbb13936a9e2572b8
tree4e814a3086e1a5bf5aab4d109391f31b1e04bda2
parentd96eaed097874e581a53d6778da8fe063b4bdac6
Don't try to run didAbortWorkflow() if the user never provided a command

Summary:
If you type `arc`, you currently get a fatal since $config isn't defined. Don't try to run the hook if we never built a config.

(We could build the config earlier and then run the hook anyway, but $workflow and $command would not be defined. It seems unlikely that executing the hook here is useful, since it affects only the case that the user types `arc` on its own.)

Test Plan: Typed `arc`. Typed `arc diff`, etc.

Reviewers: vrana, btrahan

Reviewed By: vrana

CC: aran
Differential Revision: https://secure.phabricator.com/D3841
scripts/arcanist.php