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

Re: [PATCH] gitweb: Do not automatically append " git" to custom site name

From
Jeff King <peff@peff.net>
Date
Oct 11, 2006, 22:06 UTC
Message-ID
<20061011220621.GA4041@coredump.intra.peff.net>
In-Reply-To
<20061011202228.27279.97423.stgit@rover>
On Wed, Oct 11, 2006 at 10:22:28PM +0200, Petr Baudis wrote:
> +our $site_name = "++GITWEB_SITENAME++" || "$ENV{'SERVER_NAME'} Git" || "Untitled Git";

This will never show "Untitled" (instead it shows " Git") and will cause a perl warning if $ENV{SERVER_NAME} is not defined and warnings are enabled (which tye are in gitweb).

I think this is what you want:
our $site_name = "++GITWEB_SITENAME++" ||
                 ($ENV{SERVER_NAME} || "Untitled") . " Git";
-Peff
Previous: Jakub NarebskiNext: Petr Baudis
Message 3 of 4 in “gitweb: Do not automatically append " git" to custom site name”
  1. gitweb: Do not automatically append " git" to custom site namePetr Baudis, Oct 11, 2006
  2. Jakub NarebskiOct 11, 2006
  3. Jeff KingOct 11, 2006
  4. gitweb: Do not automatically append " git" to custom site namePetr Baudis, Oct 24, 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.