diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2007-07-04 02:11:23 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-08 01:18:29 +0400 |
commit | 76e4f5d025d80479c3a01ed9c65b024e9b80d931 (patch) | |
tree | c680a21d213b5d136ead76a51cec7e31e46971a6 /gitweb | |
parent | 478524508e2f49af8cc76f2d7294a3b33facf121 (diff) |
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index d5b8812a12..9d728d7738 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -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'}); |