From: Jakub Narebski Date: Sun, 18 Jun 2006 08:02:35 GMT Subject: Re: [RFD] gitweb configuration Message-ID: In-Reply-To: <46a038f90606180042w7b4d11dbvbea28b750ddbc6e2@mail.gmail.com> Martin Langhoff wrote: > On 6/18/06, Jakub Narebski 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). When talking about gitweb [installation] configuration, including where to find GIT projects to display, one needs to remember that gitweb might (and probably is) installed from binary package and not git.git, and git/.git/config might not exist. So we have the following options to separate gitweb-wide options: - use ~/.gitconfig, /etc/gitconfig or some other global git configuration file, reading values using '$gitexecdir/git-repo-config'. Problem: bootstraping, namely value of $gitexecdir ($gitbin now) needs to be set in gitweb.cgi, perhaps during the build process. - use gitweb.conf for configuration, reading values via equivalent of 'GIT_CONFIG=gitweb.conf $gitexecdir/git-repo-config'. Problem: bootstraping, namely value of $gitexecdir ($gitbin now) needs to be set in gitweb.cgi, perhaps during the build process. - use gitweb.conf for configuration, following the .git/config format, writing parsing of ini file (reading only) in Perl from scratch (or use one of many CPAN modules). - use Perl for configuration file, a la Jon Loeliger patch: http://marc.theaimsgroup.com/?l=git&m=114308224922372&w=2 -- Jakub Narebski Warsaw, Poland ShadeHawk on #git