# [StGit PATCH] Do not append a new line to the backwards compat files (bug #12656)

2 messages from 2008-12-02 to 2008-12-02. Participants: Catalin Marinas, Karl Hasselström.
Thread: https://gitlist.dev/t/16556

## Catalin Marinas, 2008-12-02 14:38

Subject: [StGit PATCH] Do not append a new line to the backwards compat files (bug #12656)
Message-ID: <20081202143839.24221.90893.stgit@localhost.localdomain>
URL: https://gitlist.dev/e/20081202143839.24221.90893.stgit%40localhost.localdomain

```
Since the multiline argument wasn't passed to the utils.write_string()
function when writing the compatibility description file from the new
infrastructure, any older command like push would have committed these
new lines.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
---
 stgit/lib/stack.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/stgit/lib/stack.py b/stgit/lib/stack.py
index 47679b6..a72ee22 100644
--- a/stgit/lib/stack.py
+++ b/stgit/lib/stack.py
@@ -58,7 +58,7 @@ class Patch(object):
         write('authdate', d.author.date)
         write('commname', d.committer.name)
         write('commemail', d.committer.email)
-        write('description', d.message)
+        write('description', d.message, multiline = True)
         write('log', write_patchlog().sha1)
         write('top', new_commit.sha1)
         write('bottom', d.parent.sha1)

```

## Karl Hasselström, 2008-12-02 15:39

Subject: Re: [StGit PATCH] Do not append a new line to the backwards compat files (bug #12656)
Message-ID: <20081202153916.GA19967@diana.vm.bytemark.co.uk>
URL: https://gitlist.dev/e/20081202153916.GA19967%40diana.vm.bytemark.co.uk
In-Reply-To: <20081202143839.24221.90893.stgit@localhost.localdomain>

```
On 2008-12-02 14:38:39 +0000, Catalin Marinas wrote:

> Since the multiline argument wasn't passed to the
> utils.write_string() function when writing the compatibility
> description file from the new infrastructure, any older command like
> push would have committed these new lines.
>
> Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>

Acked-by: Karl Hasselström <kha@treskal.com>

Thanks.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle

```
