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 set a few variables
8 # to locate the requested repository.
11 # $service - normally "git-upload-pack"
12 # `git daemon --help` describes other possible services
15 # $uri = git://$host/$path
18 # CONNECTION VARIABLES
21 # $client = [$client_addr]:$client_port
24 # $server = [$server_addr]:$server_port
27 # $user - who runs the service
30 # * a path relative to the user's home directory
31 # * equivalently, a path starting ~/
32 # $repo - if set, the repository's path is $dir/$repo
33 # otherwise, the repository's path is just $dir
34 # $check_export - whether to check for a git-daemon-export-ok file
36 # $check_repo - whether to restrict the syntax of $repo
38 # @opts - options for the service command
40 if ($path =~ m{^~([^/]*)/(.*)}) {