git-daemon: invoke 'git upload-pack' instead of 'git-upload-pack'
[userv-utils] / git-daemon / git-urlmap
CommitLineData
18c4999f 1# Example configuration file for the userv git daemon.
6fe98f4a
TF
2#
3# This was written by Tony Finch <dot@dotat.at>
4# You may do anything with it, at your own risk.
5# http://creativecommons.org/publicdomain/zero/1.0/
6
18c4999f
TF
7if ($host eq 'git.chiark.greenend.org.uk') {
8 if ($path =~ m{^~([^/]*)/(.*)}) {
9 $user = $1;
10 $dir = 'public-git';
11 $repo = $2;
12 } else {
13 $user = 'webmaster';
14 $dir = '/u2/git-repos';
15 $repo = $path;
16 }
17} elsif (m{^git://cabal[.]greenend[.]org[.]uk/~([^/]*)/(.*)$}) {
18 $user = $1;
19 $dir = 'cabal-git';
20 $repo = $2;
21} elsif ($host eq 'dotat.at') {
22 $user = 'fanf';
23 $dir = 'public-git';
24 $repo = $path;
25}
6fe98f4a
TF
26
27# end