From a7866827a2e5e0bfdce4df5ef934fc671fb7d720 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 9 Mar 2012 08:57:18 -0800 Subject: [PATCH] Fix another "arc patch" authentication issue 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/workflow/patch/ArcanistPatchWorkflow.php b/src/workflow/patch/ArcanistPatchWorkflow.php index 3f9fd0ff..8953c94b 100644 --- a/src/workflow/patch/ArcanistPatchWorkflow.php +++ b/src/workflow/patch/ArcanistPatchWorkflow.php @@ -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', -- 2.43.0