Skip to content

Commit

Permalink
Remove warning from git-cpan-import
Browse files Browse the repository at this point in the history
GIT_* ENV vars might not be defined, so we use ''

Signed-off-by: Pedro Melo <melo@simplicidade.org>
  • Loading branch information
melo committed Mar 6, 2009
1 parent a015a35 commit 402f0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/git-cpan-import
Expand Up @@ -125,7 +125,7 @@ my $tree = do {
# refs/remotes/cpan/master

{
local $ENV{$_} = $ENV{$_} for qw(GIT_AUTHOR_NAME GIT_AUTHOR_NAME GIT_AUTHOR_DATE);
local $ENV{$_} = (defined $ENV{$_}? $ENV{$_} : '') for qw(GIT_AUTHOR_NAME GIT_AUTHOR_NAME GIT_AUTHOR_DATE);

my $author_obj = $module_obj->author;

Expand Down

0 comments on commit 402f0bf

Please sign in to comment.