]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Fix error in git_project_index subroutine
authorJakub Narebski <redacted>
Wed, 3 Jan 2007 15:03:01 +0000 (16:03 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 59f41b0243a962bc5033a991fa8ff7d4396353ea5e830079fc7dac781d990c19..766aa5581f8d835c9e9cc629e1d83b7f02a73118b4acf3bc2a32db59608c489d 100755 (executable)
@@ -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'});
This page took 0.287091 seconds and 4 git commands to generate.