]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Quote author parameter
authorEdward Speyer <edward@fb.com>
Wed, 5 Dec 2012 23:37:14 +0000 (15:37 -0800)
committerEdward Speyer <edward@fb.com>
Wed, 5 Dec 2012 23:45:54 +0000 (15:45 -0800)
Summary:
Fixes the exception:

  Exception
  Command 'git commit -a --author=Whatever Long Name <whatever@email.com> -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

index e3b122fc78f28d154ce67b4107d0dc858405d529..e04a637722a159f7efc3a093abf32ce9df6698fa 100644 (file)
@@ -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);