parseopt: handle malformed --expire arguments more nicely
[gitweb.git] / git-svn.perl
index 0b60c23e2fb716c928dd1b334926bccc25ab998e..76a75d0b3dfe36f0c82c3951f8b7b04849f808e1 100755 (executable)
@@ -1866,6 +1866,7 @@ sub get_commit_entry {
                        }
                }
                $msgbuf =~ s/\s+$//s;
+               $msgbuf =~ s/\r\n/\n/sg; # SVN 1.6+ disallows CRLF
                if ($Git::SVN::_add_author_from && defined($author)
                    && !$saw_from) {
                        $msgbuf .= "\n\nFrom: $author";