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 <draenog@pld-linux.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Kacper Kornet committed Apr 24, 2012 at 19:50 UTC 75e0dffef009bb06072e44d38555373639d94986
1 file changed +4 -2
gitweb/gitweb.perl
+4 -2
@@ -2997,9 +2997,11 @@ sub git_get_projects_list {
2997 }
2998 if (check_export_ok("$projectroot/$path")) {
2999 my $pr = {
3000 - path => $path,
3001 - owner => to_utf8($owner),
3000 + path => $path
3001 };
3002 + if ($owner) {
3003 + $pr->{'owner'} = to_utf8($owner);
3004 + }
3005 push @list, $pr;
3006 }
3007 }