mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
gitweb: prefer git_get_project_owner() over get_file_owner()
This way if $projects_list exists, it'll be used, otherwise get_file_owner() will be used as before. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Acked-by: Luben Tuikov <ltuikov@yahoo.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
478524508e
commit
76e4f5d025
|
@ -3178,7 +3178,7 @@ sub git_project_list_body {
|
|||
$pr->{'descr'} = chop_str($descr, 25, 5);
|
||||
}
|
||||
if (!defined $pr->{'owner'}) {
|
||||
$pr->{'owner'} = get_file_owner("$projectroot/$pr->{'path'}") || "";
|
||||
$pr->{'owner'} = git_get_project_owner("$pr->{'path'}") || "";
|
||||
}
|
||||
if ($check_forks) {
|
||||
my $pname = $pr->{'path'};
|
||||
|
@ -3602,7 +3602,7 @@ sub git_project_index {
|
|||
|
||||
foreach my $pr (@projects) {
|
||||
if (!exists $pr->{'owner'}) {
|
||||
$pr->{'owner'} = get_file_owner("$projectroot/$pr->{'path'}");
|
||||
$pr->{'owner'} = git_get_project_owner("$pr->{'path'}");
|
||||
}
|
||||
|
||||
my ($path, $owner) = ($pr->{'path'}, $pr->{'owner'});
|
||||
|
|
Loading…
Reference in a new issue