Re: [PATCH] gitweb: optionally read config from GITWEB_CONFIG
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Aug 2, 2006, 20:36 UTC
- Message-ID
- <ear2bb$j9p$3@sea.gmane.org>
- In-Reply-To
- <E1G8NNl-0006ez-6J@moooo.ath.cx>
Matthias Lederhofer wrote:
Show 16 quoted lines
> Jakub Narebski <jnareb@gmail.com> wrote: >> Jeff King wrote: >> > @@ -56,7 +50,7 @@ # URI of GIT logo >> > our $logo = "@@GITWEB_LOGO@@"; >> > >> > # source of projects list >> > -our $projects_list = "@@GITWEB_LIST@@" || "$projectroot"; >> > +our $projects_list = "@@GITWEB_LIST@@"; >> > >> > # default blob_plain mimetype and default charset for text/plain blob >> > our $default_blob_plain_mimetype = 'text/plain'; >> >> But why that change? > Earlier this was undef if the user did not change it. Now this is > always a string so the second one will probably never come into play > except the user chooses to set the string to undef again.
Empty string is also false in Perl. Try
perl -e 'my $var = "" || "other"; print "var = $var\n";'
I'd rather use $projectroot for $projects_list, preferably without needing to set $projects_list.
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git