threads / patch / 11791

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

Subject: [PATCH] gitweb: Make use of the $git_dir variable at sub git_get_project_description

## tl;dr

One message between Jan 30, 2008 and Jan 30, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Bruno Ribas· Jan 30, 2008, 05:37 UTC · lore
Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br>
---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to gitweb/gitweb.perl +1 −1
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index e29ad0a..157f499 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;
-- 
1.5.3.8

← back to recent threads