Avoid generating a warning if $fullname{$file} is undefined
authorNick Woolley <nick@noodlefactory.co.uk>
Mon, 6 Jul 2009 13:33:45 +0000 (14:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jul 2009 16:36:43 +0000 (09:36 -0700)
Signed-off-by: Nick Woolley <git.wu-lee@noodlefactory.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsexportcommit.perl

index d50946872a73d4ddb4bce0e6101ae144395613a4..59b672213bfc36f95db089f0e13bafc1c2f2ed71 100755 (executable)
@@ -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};
       }
     }
 }