diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-04-29 17:51:56 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-29 17:51:56 -0700 |
commit | 070d5271e464d7256f675c4259b230bf11aa2ffc (patch) | |
tree | 2131d5489094655fc0865ac94fe0dae13fa29e69 | |
parent | Merge branch 'rs/commit-list-append' (diff) | |
parent | gitweb: Don't set owner if got empty value from projects.list (diff) | |
download | tgif-070d5271e464d7256f675c4259b230bf11aa2ffc.tar.xz |
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; } } |