From: Jakub Narebski Date: Sat, 27 Mar 2010 19:26:59 +0000 (+0100) Subject: gitweb: git_get_project_config requires only $git_dir, not also $project X-Git-Tag: v1.7.0.4~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7a49c254cdaec6b15a6e2818e29fdb34fc6f7717;p=git.git gitweb: git_get_project_config requires only $git_dir, not also $project Fix overeager early return in git_get_project_config, introduced in 9be3614 (gitweb: Fix project-specific feature override behavior, 2010-03-01). When git_get_project_config is called from projects list page via git_get_project_owner($path) etc., it is called with $git_dir defined (in git_get_project_owner($path) etc.), but $project variable is not defined. git_get_project_config doesn't use $project variable anyway. Reported-by: Tobias Heinlein Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 3d80deba0..9d4c58238 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2209,8 +2209,7 @@ sub config_to_multi { sub git_get_project_config { my ($key, $type) = @_; - # do we have project - return unless (defined $project && defined $git_dir); + return unless defined $git_dir; # key sanity check return unless ($key);