threads / patch / 20035

patch, 2 partsAvoid generating a warning if $fullname{$file} is undefined

Subject: [PATCH 2/2] Avoid generating a warning if $fullname{$file} is undefined

## tl;dr

One message between Jul 6, 2009 and Jul 6, 2009. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Nick Woolley· Jul 6, 2009, 13:33 UTC · lore
Signed-off-by: Nick Woolley <git.wu-lee@noodlefactory.co.uk>
---
 git-cvsexportcommit.perl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Show changes to git-cvsexportcommit.perl +2 −1
diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl
index d509468..59b6722 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};
       }
     }
 }
-- 
1.6.3.3

← back to recent threads