From: Bruno Ribas Date: Wed, 6 Feb 2008 17:15:12 +0000 (-0200) Subject: gitweb: Make use of the $git_dir variable at sub git_get_project_url_list X-Git-Tag: v1.5.5-rc0~241 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=201945eeb3b52400e16bb36bf60c56a849c62f32;p=git.git gitweb: Make use of the $git_dir variable at sub git_get_project_url_list Signed-off-by: Bruno Ribas Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 8ef2735c5..5e88637b5 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1620,7 +1620,7 @@ sub git_get_project_url_list { my $path = shift; $git_dir = "$projectroot/$path"; - open my $fd, "$projectroot/$path/cloneurl" + open my $fd, "$git_dir/cloneurl" or return wantarray ? @{ config_to_multi(git_get_project_config('url')) } : config_to_multi(git_get_project_config('url'));