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>
This commit is contained in:
parent
e4762865c8
commit
7a49c254cd
@ -2209,8 +2209,7 @@ sub config_to_multi {
|
|||||||
sub git_get_project_config {
|
sub git_get_project_config {
|
||||||
my ($key, $type) = @_;
|
my ($key, $type) = @_;
|
||||||
|
|
||||||
# do we have project
|
return unless defined $git_dir;
|
||||||
return unless (defined $project && defined $git_dir);
|
|
||||||
|
|
||||||
# key sanity check
|
# key sanity check
|
||||||
return unless ($key);
|
return unless ($key);
|
||||||
|
Loading…
Reference in New Issue
Block a user