From: Nick Woolley Date: Mon, 6 Jul 2009 13:33:45 +0000 (+0100) Subject: Avoid generating a warning if $fullname{$file} is undefined X-Git-Tag: v1.6.4-rc0~18 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3115fe9821912f67d1774cb2e33bcb2ffc162916;p=git.git Avoid generating a warning if $fullname{$file} is undefined Signed-off-by: Nick Woolley Signed-off-by: Junio C Hamano --- diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl index d50946872..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}; } } }