From: Jeff King Date: Wed, 11 Oct 2006 22:06:21 GMT Subject: Re: [PATCH] gitweb: Do not automatically append " git" to custom site name 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