Skip to content

Commit

Permalink
gitweb: Fix error in git_project_index subroutine
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakub Narebski authored and Junio C Hamano committed Jan 3, 2007
1 parent 825cee7 commit 956259e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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'});
Expand Down

0 comments on commit 956259e

Please sign in to comment.