X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/userv-utils/blobdiff_plain/f1ebe10b60640bdbdd34927d5d74624c2a494f95..82e04925eb9e251fb56c507967fe1ff76e59c94c:/git-daemon/chiark-urlmap diff --git a/git-daemon/chiark-urlmap b/git-daemon/chiark-urlmap index d3bb876..499f21c 100644 --- a/git-daemon/chiark-urlmap +++ b/git-daemon/chiark-urlmap @@ -7,14 +7,16 @@ if ($host eq 'git.chiark.greenend.org.uk') { if ($path =~ m{^~([^/]*)/(.*)}) { $user = $1; - $dir = 'public-git'; + $dir = '.userv/public-git'; $repo = $2; } else { $user = 'webmaster'; $dir = '/u2/git-repos'; $repo = $path; } -} elsif (m{^git://cabal[.]greenend[.]org[.]uk/~([^/]*)/(.*)$}) { +} elsif ($server_addr eq '172.31.80.8' and + $host eq 'cabal.greenend.org.uk' and + $path =~ m|^~([^/]*)/(.*)$|) { $user = $1; $dir = 'cabal-git'; $repo = $2;