1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00

Fix commit message format returned by getCommitMessage

Git commit messages must have 2 newlines between the subject and body
If used to rewrite a commit message then the commit message will be
incorrectly reformatted.
This commit is contained in:
Brandon Pedersen 2012-09-06 08:56:44 -06:00
parent bc96d6036e
commit 4038e7be0a

View file

@ -753,7 +753,7 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI {
public function getCommitMessage($commit) { public function getCommitMessage($commit) {
list($message) = $this->execxLocal( list($message) = $this->execxLocal(
'log -n1 --format=%C %s --', 'log -n1 --format=%C %s --',
'%s%n%b', '%s%n%n%b',
$commit); $commit);
return $message; return $message;
} }