]> khamidou — GitHub mirrors - arcanist.git/commit
Fix an issue with "arc nrabch"
authorepriestley <git@epriestley.com>
Tue, 15 Sep 2015 18:14:07 +0000 (11:14 -0700)
committerepriestley <git@epriestley.com>
Tue, 15 Sep 2015 18:14:07 +0000 (11:14 -0700)
commit083127c4cc5aaca09cb2cd829a6a58bc7dc74738
treea886d6133693c35c81b0fad3c0a0da5d1a8e22a7
parent61fa644c4eb0ed8ff8c0b21a175512f9ea949c87
Fix an issue with "arc nrabch"

Summary:
Fixes a minor issue from D14034. PHP doesn't like `clone null;`, and if you type a nonsense command like `arc nbrhch` (as I frequently do) we try to `clone null` here.

Instead, just `return null;` if no workflow matches. Clone otherwise.

Test Plan:
  - Ran `arc nbrhcanc`
  - Ran `arc branch`

Reviewers: BYK, chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D14112
src/configuration/ArcanistConfiguration.php