@matheusbsbs / matheus-bagliano / commits / 956259ee74
Fork 0

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 <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jakub Narebski committed Jan 3, 2007 at 16:03 UTC 956259ee74df5695c55f51e9f93bbc217953a41a
1 file changed +1 -1
gitweb/gitweb.perl
+1 -1
@@ -2995,7 +2995,7 @@ sub git_project_index {
2995
2996 foreach my $pr (@projects) {
2997 if (!exists $pr->{'owner'}) {
2998 - $pr->{'owner'} = get_file_owner("$projectroot/$project");
2998 + $pr->{'owner'} = get_file_owner("$projectroot/$pr->{'path'}");
2999 }
3000
3001 my ($path, $owner) = ($pr->{'path'}, $pr->{'owner'});