Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
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 };

No commit comments for this range

Something went wrong with that request. Please try again.