]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Don't connect to Conduit in `arc feature name`
authorJakub Vrana <jakub@vrana.cz>
Sat, 23 Mar 2013 00:33:07 +0000 (17:33 -0700)
committerJakub Vrana <jakub@vrana.cz>
Sat, 23 Mar 2013 00:33:07 +0000 (17:33 -0700)
Summary: There's no need for having an Internet connection in creating a branch.

Test Plan:
  $ arc feature name # with disabled Internet
  $ arc feature
  [cURL/6] (https://secure.phabricator.com/api/conduit.connect)

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5430

src/workflow/ArcanistFeatureWorkflow.php

index 5ae1adac978ad1e32e883c711c9c39ae0201a15b..e1601d08d08c0458510395472fd7f60590f91549 100644 (file)
@@ -48,7 +48,7 @@ EOTEXT
   }
 
   public function requiresAuthentication() {
-    return true;
+    return !$this->getArgument('names');
   }