Index: gitweb.cgi =================================================================== --- 8b7a4b08ba4892970a2531d4c1584e3881a13586/gitweb.cgi (mode:100644) +++ fe8329b147103e115e2ad727bfca34c2ecfa901d/gitweb.cgi (mode:100755) @@ -40,6 +40,16 @@ #my $projects_list = $projectroot; my $projects_list = "index/index.aux"; +# allow config file to override settings above +if (-r '/etc/gitweb.conf') { + open(CONF, '/etc/gitweb.conf') || die_error(undef, "Cannot open /etc/gitweb.conf."); + while () { + chomp; + eval($_) if ($_ =~ /^\s*(\$[\w]+)\s*=\s*(.*)\s*$/); + } + close(CONF); +} + # input validation and dispatch my $action = $cgi->param('a'); if (defined $action) {