From: Jakub Narebski Date: Wed, 3 Jan 2007 15:03:01 +0000 (+0100) Subject: gitweb: Fix error in git_project_index subroutine X-Git-Tag: v1.5.0-rc1~107 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=956259ee74df5695c55f51e9f93bbc217953a41a;p=git.git 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/gitweb.perl b/gitweb/gitweb.perl index d845e91e2..7f548347a 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2995,7 +2995,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'});