diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-04-30 04:51:56 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-30 04:51:56 +0400 |
commit | 070d5271e464d7256f675c4259b230bf11aa2ffc (patch) | |
tree | 2131d5489094655fc0865ac94fe0dae13fa29e69 | |
parent | 6a8989709efbd6d5187005497907264fde026ae9 (diff) | |
parent | 75e0dffef009bb06072e44d38555373639d94986 (diff) |
Merge branch 'kk/maint-gitweb-missing-owner'
By Kacper Kornet
* kk/maint-gitweb-missing-owner:
gitweb: Don't set owner if got empty value from projects.list
-rwxr-xr-x | gitweb/gitweb.perl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 49a2ec6c0f..048f8a984a 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -3012,9 +3012,11 @@ sub git_get_projects_list { } if (check_export_ok("$projectroot/$path")) { my $pr = { - path => $path, - owner => to_utf8($owner), + path => $path }; + if ($owner) { + $pr->{'owner'} = to_utf8($owner); + } push @list, $pr; } } |