Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Git-CPAN-Patch CPAN distribution.

Report information
The Basics
Id: 43411
Status: resolved
Priority: 0/
Queue: Git-CPAN-Patch

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.1.4
Fixed in: (no value)



Subject: [PATCH] localization of GIT* env variables in git-cpan-import
See attachment. Regards, Slaven
Subject: 0001-localization-of-GIT-env-variables-in-git-cpan-impor.patch
From e6dff070b6607e9619864f6a38887ab2ed07fe51 Mon Sep 17 00:00:00 2001 From: Slaven Rezic <slaven@rezic.de> Date: Wed, 18 Feb 2009 22:07:50 +0100 Subject: [PATCH] localization of GIT* env variables in git-cpan-import - cease warning "uninitialized value in scalar assignment" - GIT_AUTHOR_NAME was doubled (I assume GIT_AUTHOR_EMAIL should be used instead) - and minor typo in a comment --- scripts/git-cpan-import | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/git-cpan-import b/scripts/git-cpan-import index 24d9301..29c534d 100755 --- a/scripts/git-cpan-import +++ b/scripts/git-cpan-import @@ -121,11 +121,13 @@ my $tree = do { -# reate a commit for the imported tree object and write it into +# create a commit for the imported tree object and write it into # refs/remotes/cpan/master { - local $ENV{$_} = $ENV{$_} for qw(GIT_AUTHOR_NAME GIT_AUTHOR_NAME GIT_AUTHOR_DATE); + no warnings 'uninitialized'; + local $ENV{$_} = $ENV{$_} for qw(GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE); + use warnings 'uninitialized'; my $author_obj = $module_obj->author; -- 1.6.1