{"thread":{"id":"6205","subject":"[PATCH] gitweb: Fix error in git_project_index subroutine","startedAt":"2007-01-03T15:03:01Z","lastAt":"2007-01-03T15:03:01Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"30753","messageId":"1167836581326-git-send-email-jnareb@gmail.com","threadId":"6205","inReplyTo":null,"subject":"[PATCH] gitweb: Fix error in git_project_index subroutine","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-01-03T15:03:01Z","receivedAt":"2007-01-03T15:03:01Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Instead of \"$projectroot/$pr->{'path'}\" to get the path to project\nGIT_DIR, it was used \"$projectroot/$project\" which is valid only\nfor actions where project parameter is set, and 'project_index' is not\none of them.\n\nSigned-off-by: Jakub Narebski <jnareb@gmail.com>\n---\n gitweb/gitweb.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex d845e91..7f54834 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -2995,7 +2995,7 @@ sub git_project_index {\n \n \tforeach my $pr (@projects) {\n \t\tif (!exists $pr->{'owner'}) {\n-\t\t\t$pr->{'owner'} = get_file_owner(\"$projectroot/$project\");\n+\t\t\t$pr->{'owner'} = get_file_owner(\"$projectroot/$pr->{'path'}\");\n \t\t}\n \n \t\tmy ($path, $owner) = ($pr->{'path'}, $pr->{'owner'});\n-- \n1.4.4.3\n"}]}