projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fa2824
)
cvs import: Strip whitespace at the end of the log entry
author
Matthias Urlichs
<smurf@kiste.(none)>
Thu, 30 Jun 2005 20:09:42 +0000
(22:09 +0200)
committer
Matthias Urlichs
<smurf@kiste.(none)>
Thu, 30 Jun 2005 20:09:42 +0000
(22:09 +0200)
for compatibility with old cvs2git.
git-cvsimport-script
patch
|
blob
|
history
diff --git
a/git-cvsimport-script
b/git-cvsimport-script
index
8e0e4ac
..
3f15772
100755
(executable)
--- 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();