From: Neil Mayhew Date: Fri, 10 Feb 2012 17:11:25 +0000 (-0700) Subject: Strip trailing whitespace from commit messages X-Git-Url: https://repo.or.cz/w/git2svn.git/commitdiff_plain/8e716f0bf6e9cf4745290e9953fcbe4013d7d57a Strip trailing whitespace from commit messages 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 --- 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 (.*)/) {