From ecdb885236993a89e527a97bc4a4674ed224715d Mon Sep 17 00:00:00 2001 From: Edward Speyer Date: Wed, 5 Dec 2012 15:37:14 -0800 Subject: [PATCH] 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 --- src/workflow/ArcanistPatchWorkflow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.0