From: Jakub Narebski Date: Wed, 3 Jan 2007 15:03:01 +0000 (+0100) Subject: gitweb: Fix error in git_project_index subroutine X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/43df38478e9f80496637e24e000a0bbe3ba6f81b14a9867eadf587c816e0a0f0 gitweb: Fix error in git_project_index subroutine Instead of "$projectroot/$pr->{'path'}" to get the path to project GIT_DIR, it was used "$projectroot/$project" which is valid only for actions where project parameter is set, and 'project_index' is not one of them. Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 59f41b0..766aa55 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -2996,7 +2996,7 @@ sub git_project_index { foreach my $pr (@projects) { if (!exists $pr->{'owner'}) { - $pr->{'owner'} = get_file_owner("$projectroot/$project"); + $pr->{'owner'} = get_file_owner("$projectroot/$pr->{'path'}"); } my ($path, $owner) = ($pr->{'path'}, $pr->{'owner'});