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

Re: [PATCH] gitweb: Use GITWEB_CONFIG_SYSTEM even if GITWEB_CONFIG does exist

From
Drew Northup <drew.northup@maine.edu>
Date
May 16, 2011, 12:10 UTC
Message-ID
<1305547838.3396.4.camel@drew-northup.unet.maine.edu>
In-Reply-To
<201105151153.08826.jnareb@gmail.com>
On Sun, 2011-05-15 at 11:53 +0200, Jakub Narebski wrote:
Show 20 quoted lines
> On Sat, 14 May 2011, Jonathan Nieder wrote:
> > Jakub Narebski wrote:
> > 
> > > If per-instance configuration file exists, then system-wide
> > > configuration was _not used at all_.  This is quite untypical and
> > > suprising behavior.
> > 
> > I agree.  How to avoid breaking existing installations, though?  (I'm
> > especially worried because distro packages tend to ship their own
> > /etc/gitweb.conf, so the admin might not even know about what's
> > there.)  For example, depending on the content of /etc/gitweb.conf,
> > this has the potential to break "git instaweb".
> 
> I don't think that this change has potential to break "git instaweb",
> because "git instaweb" creates its own gitweb_conf.perl - settings
> there would override distro's /etc/gitweb.conf.  But I have not checked
> if it doesn't rely on some values being default; it shouldn't though.
> 
> It is a PITA to have to retain backward compatibility with our bugs
> and mistakes.  Perhaps this change is for 1.8.0 version boundary, then?

I'm comfortable putting this at the 1.8.0 boundary. Frankly, I think that the default /etc/gitweb.conf should be a file full of commented-out examples anyway. I do believe that at least one distro is doing that already. Doing so decreases the potential pain for those still expecting the old behavior.

-- 
-Drew Northup
________________________________________________
"As opposed to vegetable or mineral error?"
-John Pescatore, SANS NewsBites Vol. 12 Num. 59
Previous: Junio C Hamano
Message 8 of 8 in “gitweb: Use GITWEB_CONFIG_SYSTEM even if GITWEB_CONFIG does exist”
  1. gitweb: Use GITWEB_CONFIG_SYSTEM even if GITWEB_CONFIG does existJakub Narebski, May 14, 2011
  2. Jonathan NiederMay 14, 2011
  3. Jakub NarebskiMay 15, 2011
  4. [PATCHv2] gitweb: Use GITWEB_CONFIG_SYSTEM even if GITWEB_CONFIG does existJakub Narebski, May 16, 2011
  5. Junio C HamanoMay 17, 2011
  6. Drew NorthupMay 17, 2011
  7. Junio C HamanoMay 17, 2011
  8. Drew NorthupMay 16, 2011

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.