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

Re: [RFD] gitweb configuration

From
Junio C Hamano <junkio@cox.net>
Date
Jun 18, 2006, 08:38 UTC
Message-ID
<7v64iy505x.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<46a038f90606180042w7b4d11dbvbea28b750ddbc6e2@mail.gmail.com>
"Martin Langhoff" <martin.langhoff@gmail.com> writes:
Show 7 quoted lines
> On 6/18/06, Jakub Narebski <jnareb@gmail.com> wrote:
>> So GIT_CONFIG would be ~/.gitconfig, and GIT_CONFIG_LOCAL would be
>> $GIT_DIR/config or what?
>
> I don't quite follow why gitweb needs a GIT_CONFIG_LOCAL defined.
> Given that it works in a CGI environment, it should read
> $GIT_DIR/config by default, and $GIT_CONFIG if set (from httpd.conf).

I am not Pasky, but I think the intent of the patch is to run "git repo-config" with GIT_CONFIG pointing at /etc/gitweb.conf to obtain server-wide configuration (e.g. finding out where repositories are) and then when serving individual repository (i.e. after we set up GIT_DIR to point at it) run "git repo-config" without GIT_CONFIG to read per-repository configuration. That way we can reuse the configuration parser.

Previous: Martin LanghoffNext: Petr Baudis
Message 11 of 12 in “[RFD] gitweb configuration”
  1. Jakub NarebskiJun 17, 2006
  2. Petr BaudisJun 17, 2006
  3. Jakub NarebskiJun 18, 2006
  4. Martin LanghoffJun 18, 2006
  5. Jakub NarebskiJun 18, 2006
  6. Timo HirvonenJun 18, 2006
  7. Jakub NarebskiJun 18, 2006
  8. Junio C HamanoJun 18, 2006
  9. Jakub NarebskiJun 18, 2006
  10. Martin LanghoffJun 18, 2006
  11. Junio C HamanoJun 18, 2006
  12. Petr BaudisJun 18, 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.