From: Brandon Pedersen Date: Thu, 6 Sep 2012 14:56:44 +0000 (-0600) Subject: Fix commit message format returned by getCommitMessage X-Git-Tag: conduit-6~139^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4038e7be0a8792a05b6f8e86104a4282d1425763;p=arcanist.git 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. --- diff --git a/src/repository/api/ArcanistGitAPI.php b/src/repository/api/ArcanistGitAPI.php index 2945525e..e92244b9 100644 --- a/src/repository/api/ArcanistGitAPI.php +++ b/src/repository/api/ArcanistGitAPI.php @@ -753,7 +753,7 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI { public function getCommitMessage($commit) { list($message) = $this->execxLocal( 'log -n1 --format=%C %s --', - '%s%n%b', + '%s%n%n%b', $commit); return $message; }