gitweb: Make use of the $git_dir variable at sub git_get_project_description
authorBruno Ribas <ribas@c3sl.ufpr.br>
Wed, 30 Jan 2008 05:37:56 +0000 (03:37 -0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Jan 2008 07:55:18 +0000 (23:55 -0800)
Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl

index 80e3d0ac47e73943a72c2a5d92067d11fa443d30..ae2d05763fc2d41c9bffdad8809e4e370389412c 100755 (executable)
@@ -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;