gitweb: Fix error in git_project_index subroutine
authorJakub Narebski <jnareb@gmail.com>
Wed, 3 Jan 2007 15:03:01 +0000 (16:03 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 3 Jan 2007 16:14:46 +0000 (08:14 -0800)
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl
index d845e91e202233916a91a7095e4a81142687c9c7..7f548347a4e8dfcfdaf8f00efee6f2c5eb302ed9 100755 (executable)
@@ -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'});