git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitweb: Fix up bogus $stylesheet declarations

From
Petr Baudis <pasky@suse.cz>
Date
Oct 26, 2006, 12:41 UTC
Message-ID
<20061026124125.12865.28172.stgit@rover>

This seems to be a pre-++ residual declaration and it wasn't good for anything at all besides flooding the webserver errorlog with "omg, our in the same scope!!" warnings.

Signed-off-by: Petr Baudis <pasky@suse.cz>
---
 gitweb/gitweb.perl |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index d737b2b..1d91f7f 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -51,10 +51,6 @@ our $site_footer = "++GITWEB_SITE_FOOTER
 
 # URI of stylesheets
 our @stylesheets = ("++GITWEB_CSS++");
-our $stylesheet;
-# default is not to define style sheet, but it can be overwritten later
-undef $stylesheet;
-
 # URI of default stylesheet
 our $stylesheet = "++GITWEB_CSS++";
Message 1 of 1 in “gitweb: Fix up bogus $stylesheet declarations”
  1. gitweb: Fix up bogus $stylesheet declarationsPetr Baudis, Oct 26, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.