cvs import: Strip whitespace at the end of the log entry

for compatibility with old cvs2git.
maint
Matthias Urlichs 2005-06-30 22:09:42 +02:00
parent 0fa2824f35
commit e371046b64
1 changed files with 6 additions and 1 deletions

View File

@ -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();