Skip to content

Commit

Permalink
gitweb: Don't set owner if got empty value from projects.list
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kacper Kornet authored and Junio C Hamano committed Apr 25, 2012
1 parent fdec2eb commit 75e0dff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 75e0dff

Please sign in to comment.