1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-29 10:12:41 +01:00

Quote author parameter

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
This commit is contained in:
Edward Speyer 2012-12-05 15:37:14 -08:00
parent 6c3418a0e8
commit ecdb885236

View file

@ -717,7 +717,7 @@ EOTEXT
$author = sprintf('%s <%s>', $author = sprintf('%s <%s>',
$address->getDisplayName(), $address->getDisplayName(),
$address->getAddress()); $address->getAddress());
$author_cmd = sprintf('--author=%s ', $author); $author_cmd = csprintf('--author=%s ', $author);
} }
} }
$commit_message = $this->getCommitMessage($bundle); $commit_message = $this->getCommitMessage($bundle);