Permalink
Browse files

Github plugin should fall back to realname if the login field is empty.

  • Loading branch information...
1 parent 2649b13 commit 44ee904eb398f7de0f0dca3d19bc86c9a3ef551b @Infinoid committed Aug 21, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/local/githubparser.pm
@@ -283,8 +283,8 @@ sub output_item {
my ($self, $item, $branch, $link, $rev) = @_;
my $prefix = 'unknown';
my $creator = $$item{author}{login};
- $creator = $$item{author}{name} unless defined $creator;
- $creator = 'unknown' unless defined $creator;
+ $creator = $$item{author}{name} unless(defined $creator && length $creator);
+ $creator = 'unknown' unless(defined $creator && length $creator);
my $desc = $$item{message};
$desc = '(no commit message)' unless defined $desc;

0 comments on commit 44ee904

Please sign in to comment.