gitweb: git_get_project_config requires only $git_dir, not also $project
commit7a49c254cdaec6b15a6e2818e29fdb34fc6f7717
authorJakub Narebski <jnareb@gmail.com>
Sat, 27 Mar 2010 19:26:59 +0000 (27 20:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 31 Mar 2010 17:57:04 +0000 (31 10:57 -0700)
tree7e2e1ef0a5dec7e653f2f037dcb8d5bff0f0dd16
parente4762865c88050745a20a62c64b4ffa542e88c3a
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 <keytoaster@gentoo.org>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl