From 8e716f0bf6e9cf4745290e9953fcbe4013d7d57a Mon Sep 17 00:00:00 2001 From: Neil Mayhew Date: Fri, 10 Feb 2012 10:11:25 -0700 Subject: [PATCH] Strip trailing whitespace from commit messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Git includes a trailing newline in the fast-export, and we add a newline when we write out the svn:log property, so stripping all trailing whitespace avoids extra newlines in the svn log message. Signed-off-by: Love Hörnquist Åstrand --- git2svn | 1 + 1 file changed, 1 insertion(+) diff --git a/git2svn b/git2svn index 8ef55f1..90009b6 100755 --- a/git2svn +++ b/git2svn @@ -280,6 +280,7 @@ COMMAND: while (!eof(IN)) { $next = next_line($IN); my $log = read_data($IN, $next); + $log =~ s/\s+$//; $next = next_line($IN); if ($next =~ m/from (.*)/) { -- 2.11.4.GIT