From: Kacper Kornet Date: Tue, 24 Apr 2012 17:50:05 +0000 (+0200) Subject: gitweb: Don't set owner if got empty value from projects.list X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/9ce9037e27bd821d2e70218588f6f0e673630acda5b2462742cdbb91d518ea60?ds=sidebyside;hp=86e3f9568b4b42c6763c5d36aa98ae2d6150c7d407fbe108e1583e8dcdc63297 gitweb: Don't set owner if got empty value from projects.list Prevent setting owner to an empty value if it is not specified in projects.list file. Otherwise it stops retrieving information about the owner from other files. Signed-off-by: Kacper Kornet Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 656ac98..0ac67c9 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -3013,9 +3013,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; } }