diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-09-04 16:16:51 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-04 16:16:51 -0700 |
commit | f335393cb267ed983d1b9d6574b95d6f26bd5a85 (patch) | |
tree | 1c8feab891c51ceff96424dbd71474ce8efd65ec /git-daemon.txt | |
parent | 53850261bf66576e51d8d6b0cee14b692de737e4 (diff) | |
download | git-htmldocs-f335393cb267ed983d1b9d6574b95d6f26bd5a85.tar.gz |
Autogenerated HTML docs for v1.7.12-176-g3fc0e
Diffstat (limited to 'git-daemon.txt')
-rw-r--r-- | git-daemon.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/git-daemon.txt b/git-daemon.txt index e8f757704..7e5098a95 100644 --- a/git-daemon.txt +++ b/git-daemon.txt @@ -16,6 +16,7 @@ SYNOPSIS [--reuseaddr] [--detach] [--pid-file=<file>] [--enable=<service>] [--disable=<service>] [--allow-override=<service>] [--forbid-override=<service>] + [--access-hook=<path>] [--inetd | [--listen=<host_or_ipaddr>] [--port=<n>] [--user=<user> [--group=<group>]] [<directory>...] @@ -171,6 +172,21 @@ the facility of inet daemon to achieve the same before spawning errors are not enabled, all errors report "access denied" to the client. The default is --no-informative-errors. +--access-hook=<path>:: + Every time a client connects, first run an external command + specified by the <path> with service name (e.g. "upload-pack"), + path to the repository, hostname (%H), canonical hostname + (%CH), ip address (%IP), and tcp port (%P) as its command line + arguments. The external command can decide to decline the + service by exiting with a non-zero status (or to allow it by + exiting with a zero status). It can also look at the $REMOTE_ADDR + and $REMOTE_PORT environment variables to learn about the + requestor when making this decision. ++ +The external command can optionally write a single line to its +standard output to be sent to the requestor as an error message when +it declines the service. + <directory>:: A directory to add to the whitelist of allowed directories. Unless --strict-paths is specified this will also include subdirectories |