X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-cvsexportcommit.perl;h=59b672213bfc36f95db089f0e13bafc1c2f2ed71;hb=b97c470b577071b74315a0e57dd9a03dca120e93;hp=a36df3392652b8a854ca48bdf71977dcf12b244b;hpb=e6c7c2cc9766434607b8da5db872e7881a043925;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;