X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=git-daemon%2Fgit-urlmap;h=80a1f3c00ac052e8682937975444582fd9010f24;hb=b943240f15db6b7684fbd241dc0ab5445390dde5;hp=61c376cbe9328f4dfc340acb63e825ffa4350202;hpb=3fc5563cc0f31659d09a6cdfd0fd1c7fdb6ed85d;p=userv-utils.git diff --git a/git-daemon/git-urlmap b/git-daemon/git-urlmap index 61c376c..80a1f3c 100644 --- a/git-daemon/git-urlmap +++ b/git-daemon/git-urlmap @@ -1,27 +1,35 @@ -# Example configuration file for the userv git daemon. -# -# This was written by Tony Finch -# You may do anything with it, at your own risk. -# http://creativecommons.org/publicdomain/zero/1.0/ - -if ($host eq 'git.chiark.greenend.org.uk') { - if ($path =~ m{^~([^/]*)/(.*)}) { - $user = $1; - $dir = 'public-git'; - $repo = $2; - } else { - $user = 'webmaster'; - $dir = '/u2/git-repos'; - $repo = $path; - } -} elsif (m{^git://cabal[.]greenend[.]org[.]uk/~([^/]*)/(.*)$}) { - $user = $1; - $dir = 'cabal-git'; - $repo = $2; -} elsif ($host eq 'dotat.at') { - $user = 'fanf'; - $dir = 'public-git'; - $repo = $path; -} +# Each line is one of: +# +# single-user [/] [] +# matching requests will be handled by +# and unless overridden by handled by +# serving subdirectories of +# +# multi-user [/] +# matching requests are only those those next +# path element starts with ~. The +# request will be handled by and unless +# overridden by will be handled by +# serving subdirectories of +# ( must be a relative path) +# +# repo-regexp +# For per-user service. Subrepos must match this +# regexp, which must contain a single matching +# group which is the filesystem pathname inside +# the . The default is: +# repo-regexp ^(w[-+._0-9A-Za-z]*/?\.git)$ +# +# [no-]require-git-daemon-export-ok +# For per-user service. Default is no-. +# +# Last match, or last setting, wins. +# s may start with ~ -# end +# here is an example, taken from chiark: +# +# single-user dotat.at fanf dotat-git +# single-user git.chiark.greenend.org.uk webmaster /u2/git-repos +# +# multi-user cabal.greenend.org.uk cabal-git +# multi-user git.chiark.greenend.org.uk public-git