Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fdec2eb commit 75e0dff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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)