All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
3 $confroot = "/srv/git/gitweb/git.madduck.net";
4 $projectroot = "/srv/git/repos/$vhostdir/$pubdir";
6 $site_header = "$confroot/header.html";
7 $site_footer = "$confroot/footer.html";
8 $projects_list = $projectroot;
9 $default_projects_order = "project";
10 @git_base_url_list=("git://git.madduck.net/$vhostdir/$pubdir", "ssh://git@git.madduck.net/$vhostdir/$pubdir", "madduck:$pubdir");
11 $logo = '/git-logo.png';
12 $favicon = '/git-favicon.png';
13 push @stylesheets, '/gitweb.css';
14 push @stylesheets, '/local.css';
15 $feature{'pathinfo'}{'default'} = [1];
16 $feature{'forks'}{'default'} = [1];
19 my $gl_conf_compiled = "/srv/git/.gitolite/conf/gitolite.conf-compiled.pm";
20 my $username = $cgi->remote_user;
23 die "parse $gl_conf_compiled failed: " . ($! or $@) unless do $gl_conf_compiled;
25 $export_auth_hook = sub {
26 # open FILE, ">>/tmp/gitweb.auth" or die $!;
28 my $reponame = "$vhostdir/$pubdir/" . shift;
29 # gitweb passes us the full repo path; so we strip the beginning...
30 $reponame =~ s/\Q$projectroot\E\/?//;
31 # ...and the end, to get the repo name as it is specified in gitolite conf
32 $reponame =~ s/\.git$//;
35 # print FILE Dumper($username, $reponame, $repos);
38 return exists $repos{$reponame}{R}{$username}
39 || exists $repos{$reponame}{R}{'@all'};