summaryrefslogtreecommitdiff
path: root/git-cvsexportcommit.perl
diff options
context:
space:
mode:
authorLibravatar Nick Woolley <nick@noodlefactory.co.uk>2009-07-06 14:33:45 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-07-06 09:36:43 -0700
commit3115fe9821912f67d1774cb2e33bcb2ffc162916 (patch)
tree139933e87365368d8052062bb05eae332797358d /git-cvsexportcommit.perl
parentRemove archaic use of regex capture \1 in favour of $1 (diff)
downloadtgif-3115fe9821912f67d1774cb2e33bcb2ffc162916.tar.xz
Avoid generating a warning if $fullname{$file} is undefined
Signed-off-by: Nick Woolley <git.wu-lee@noodlefactory.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsexportcommit.perl')
-rwxr-xr-xgit-cvsexportcommit.perl3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl
index d50946872a..59b672213b 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};
}
}
}