gitweb: Make use of the $git_dir variable at sub git_get_project_description

Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Bruno Ribas 2008-01-30 03:37:56 -02:00 committed by Junio C Hamano
parent d661146ac2
commit c1dcf7ebf2

View file

@ -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;