cvs import: Strip whitespace at the end of the log entry
for compatibility with old cvs2git.
This commit is contained in:
@ -468,7 +468,12 @@ my $commit = sub {
|
|||||||
}
|
}
|
||||||
$pw->writer();
|
$pw->writer();
|
||||||
$pr->reader();
|
$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";
|
or die "Error writing to git-commit-tree: $!\n";
|
||||||
$pw->close();
|
$pw->close();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user