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, 09:40 UTC
Message-ID
<7v8xnu3iol.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<e735d7$6dq$1@sea.gmane.org>
Jakub Narebski <jnareb@gmail.com> writes:
Show 6 quoted lines
> Timo Hirvonen wrote:
>
>> Just use "git command" and you don't have to know $gitexecdir.
>
> First, 'git' might be not in PATH for the webserver user which runs
> gitweb.cgi.

For that we would have a chicken-and-egg problem if we make configuration mechanism based on git-repo-config, so I would say per-site customization is needed somehow.

Hardcoding the path into gitweb.cgi could be one way. Hardcoding the path to gitweb per-site configuration file and implement the logic to parse the configuration file without using git-repo-config would be another. Even if you wanted to use "git --exec-path" to bootstrap, not having "git" in the path would make it, eh, cumbersome.

My gut feeling is that it is sensible to assume git is on everybody's path -- after all the site is running gitweb and majority would be using binary packaged distribution, so git would be installed somewhere sensible and accessible.

So I am with Timo on this one, except that in some cases munging gitweb.cgi script itself might be needed if the installation chose to hide git somewhere inaccessible from ordinary users.

Previous: Jakub NarebskiNext: Jakub Narebski
Message 8 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.