Skip to content

Commit 75e0dff

Browse files
draenoggitster
authored andcommitted
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>
1 parent fdec2eb commit 75e0dff

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

gitweb/gitweb.perl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2997,9 +2997,11 @@ sub git_get_projects_list {
29972997
}
29982998
if (check_export_ok("$projectroot/$path")) {
29992999
my $pr = {
3000-
path => $path,
3001-
owner => to_utf8($owner),
3000+
path => $path
30023001
};
3002+
if ($owner) {
3003+
$pr->{'owner'} = to_utf8($owner);
3004+
}
30033005
push @list, $pr;
30043006
}
30053007
}

0 commit comments

Comments
 (0)