From: Matthias Urlichs Date: Thu, 30 Jun 2005 20:09:42 +0000 (+0200) Subject: cvs import: Strip whitespace at the end of the log entry X-Git-Tag: v0.99~71^2^2~11 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e371046b6473907aa6d62b7862a3afe9d33561e1;p=git.git cvs import: Strip whitespace at the end of the log entry for compatibility with old cvs2git. --- diff --git a/git-cvsimport-script b/git-cvsimport-script index 8e0e4ac4..3f157725 100755 --- a/git-cvsimport-script +++ b/git-cvsimport-script @@ -468,7 +468,12 @@ my $commit = sub { } $pw->writer(); $pr->reader(); - print $pw $logmsg + + # compatibility with git2cvs + substr($logmsg,32767) = "" if length($logmsg) > 32767; + $logmsg =~ s/[\s\n]+\z//; + + print $pw "$logmsg\n" or die "Error writing to git-commit-tree: $!\n"; $pw->close();