git-daemon: Simplify the filenames
[userv-utils] / git-daemon / git-urlmap
1 # Example configuration file for the userv git daemon.
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
7 if ($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 }
26
27 # end