X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-cvsexportcommit.perl;h=59b672213bfc36f95db089f0e13bafc1c2f2ed71;hb=444e10df2a4159b5dd2975feadbb9e1213d65b47;hp=a36df3392652b8a854ca48bdf71977dcf12b244b;hpb=36e74ab7efa3db38499d1baa61ab0f8c45a133e8;p=git.git diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl index a36df3392..59b672213 100755 --- a/git-cvsexportcommit.perl +++ b/git-cvsexportcommit.perl @@ -259,7 +259,8 @@ if (@canstatusfiles) { if $file =~ /^no file / && $status eq 'Up-to-date'; - $cvsstat{$fullname{$file}} = $status; + $cvsstat{$fullname{$file}} = $status + if defined $fullname{$file}; } } } @@ -299,7 +300,7 @@ foreach my $f (@files) { while () { my $line = $_; - $line =~ s/\$([A-Z][a-z]+):[^\$]+\$/\$\1\$/g; + $line =~ s/\$([A-Z][a-z]+):[^\$]+\$/\$$1\$/g; print FILTER_OUT $line; } close FILTER_IN;