git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
NWNick Woolley <nick@noodlefactory.co.uk>
Date
Jul 6, 2009, 13:33 UTC
Message-ID
<4A51FD39.4080402@noodlefactory.co.uk>
Signed-off-by: Nick Woolley <git.wu-lee@noodlefactory.co.uk>
---
 git-cvsexportcommit.perl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
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
Message 1 of 1 in “Avoid generating a warning if $fullname{$file} is undefined”
  1. 2/2 Avoid generating a warning if $fullname{$file} is undefinedNick Woolley, Jul 6, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.