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-Tag: v1.7.11-rc0~85^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/75e0dffef009bb06072e44d38555373639d94986?ds=inline;hp=--cc 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 --- 75e0dffef009bb06072e44d38555373639d94986 diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index a8b5fad266..f9ec0de668 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2997,9 +2997,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; } }