]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix another "arc patch" authentication issue
authorepriestley <git@epriestley.com>
Fri, 9 Mar 2012 16:57:18 +0000 (08:57 -0800)
committerepriestley <git@epriestley.com>
Fri, 9 Mar 2012 16:57:18 +0000 (08:57 -0800)
Summary: Similar to rARC298ed9cda55d90b755e4dc45d202213e91631888, work around "differential.anonymous-access" issues until we get proper permissions up.

Test Plan: Ran "arc patch" against a "differential.anonymous-acccess" install with a revision argument

Reviewers: btrahan, mbautin

Reviewed By: btrahan

CC: aran, epriestley
Maniphest Tasks: T848

Differential Revision: https://secure.phabricator.com/D1835

src/workflow/patch/ArcanistPatchWorkflow.php

index 3f9fd0ff931dff17583f0c986b39b7fa94a48fd2..8953c94bb3c303cee9ca7e6fc949e560f01c9e8d 100644 (file)
@@ -615,7 +615,10 @@ EOTEXT
     $prompt_message = null;
 
     // if we have a revision id the commit message is in differential
-    if ($revision_id) {
+
+    // TODO: See T848 for the authenticated stuff.
+    if ($revision_id && $this->isConduitAuthenticated()) {
+
       $conduit        = $this->getConduit();
       $commit_message = $conduit->callMethodSynchronous(
         'differential.getcommitmessage',