From 75e0dffef009bb06072e44d38555373639d94986 Mon Sep 17 00:00:00 2001 From: Kacper Kornet Date: Tue, 24 Apr 2012 19:50:05 +0200 Subject: [PATCH] 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 --- gitweb/gitweb.perl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index a8b5fad26..f9ec0de66 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; } } -- 2.26.2