1 # Configuration file for the userv git daemon.
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/
7 # This is a perl script which is expected to turn the information
8 # found in the request variables into the location of the
9 # corresponding repository, which it stores in the output variables.
10 # Some information about the network connection is also available.
13 # $service - normally "git-upload-pack"
14 # `git daemon --help` describes other possible services
17 # $uri = git://$host/$path
21 # $user - who runs the service
24 # * a path relative to the user's home directory
25 # * equivalently, a path starting ~/
26 # $repo - if set, the repository's path is $dir/$repo
27 # otherwise, the repository's path is just $dir
28 # $check_export - whether to check for a git-daemon-export-ok file
30 # $check_repo - whether to restrict the syntax of $repo
32 # @opts - options for the service command
34 # CONNECTION VARIABLES
37 # $client = [$client_addr]:$client_port
40 # $server = [$server_addr]:$server_port
42 if ($path =~ m{^~([^/]*)/(.*)}) {