Browse Source

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>
maint
Bruno Ribas 17 years ago committed by Junio C Hamano
parent
commit
c1dcf7ebf2
  1. 2
      gitweb/gitweb.perl

2
gitweb/gitweb.perl

@ -1606,7 +1606,7 @@ sub git_get_project_description { @@ -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;

Loading…
Cancel
Save