Browse files

Merge branch 'env-variables'

  • Loading branch information...
2 parents 9eb7acc + c852817 commit fc5049c6d50cbd4d189fa126159222d9a31adac5 @yanick committed Mar 3, 2014
Showing with 5 additions and 3 deletions.
  1. +2 −0 Changes
  2. +3 −3 lib/Git/CPAN/Patch/Command/Import.pm
View
2 Changes
@@ -4,6 +4,8 @@ Revision history for Git::CPAN::Patch
[API CHANGES]
[BUG FIXES]
+ - Author and date of release take precedence over the
+ GIT_* env variables. (RT#93481, reported by Slaven Rezic)
[DOCUMENTATION]
View
6 lib/Git/CPAN/Patch/Command/Import.pm
@@ -218,9 +218,9 @@ method import_release($release) {
# TODO authors and author_date
# create the commit object
- $ENV{GIT_AUTHOR_NAME} ||= $release->author_name;
- $ENV{GIT_AUTHOR_EMAIL} ||= $release->author_email;
- $ENV{GIT_AUTHOR_DATE} ||= $release->date;
+ $ENV{GIT_AUTHOR_NAME} = $release->author_name if $release->author_name;
+ $ENV{GIT_AUTHOR_EMAIL} = $release->author_email if $release->author_email;
+ $ENV{GIT_AUTHOR_DATE} = $release->date if $release->date;
my @parents = grep { $_ } $self->last_commit, @{ $self->parent };

0 comments on commit fc5049c

Please sign in to comment.