From: Bruno Ribas Date: Wed, 30 Jan 2008 05:37:56 +0000 (-0200) Subject: gitweb: Make use of the $git_dir variable at sub git_get_project_description X-Git-Tag: v1.5.4~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c1dcf7ebf222e7c24b89b40bc00a6ca5e9e2eec6;p=git.git gitweb: Make use of the $git_dir variable at sub git_get_project_description Signed-off-by: Bruno Ribas Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 80e3d0ac4..ae2d05763 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1606,7 +1606,7 @@ sub git_get_project_description { my $path = shift; $git_dir = "$projectroot/$path"; - open my $fd, "$projectroot/$path/description" + open my $fd, "$git_dir/description" or return git_get_project_config('description'); my $descr = <$fd>; close $fd;