From: Edward Speyer Date: Wed, 5 Dec 2012 23:37:14 +0000 (-0800) Subject: Quote author parameter X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ecdb885236993a89e527a97bc4a4674ed224715d;p=arcanist.git Quote author parameter Summary: Fixes the exception: Exception Command 'git commit -a --author=Whatever Long Name -F -' failed with error #1 Test Plan: Tested with full git name Reviewers: epriestley, aurelijus Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3979 --- diff --git a/src/workflow/ArcanistPatchWorkflow.php b/src/workflow/ArcanistPatchWorkflow.php index e3b122fc..e04a6377 100644 --- a/src/workflow/ArcanistPatchWorkflow.php +++ b/src/workflow/ArcanistPatchWorkflow.php @@ -717,7 +717,7 @@ EOTEXT $author = sprintf('%s <%s>', $address->getDisplayName(), $address->getAddress()); - $author_cmd = sprintf('--author=%s ', $author); + $author_cmd = csprintf('--author=%s ', $author); } } $commit_message = $this->getCommitMessage($bundle);