From 4038e7be0a8792a05b6f8e86104a4282d1425763 Mon Sep 17 00:00:00 2001 From: Brandon Pedersen Date: Thu, 6 Sep 2012 08:56:44 -0600 Subject: [PATCH] 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. --- src/repository/api/ArcanistGitAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.43.0