diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-08-14 11:37:51 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-08-15 11:01:55 -0700 |
commit | 93741e4a915fc33a00e6facff88cd27565d10f82 (patch) | |
tree | 68d631a63ed08b4332df9511c6a11915bb83b468 /mergetools/kompare | |
parent | 86faaf90b34570da938432f5c9847af7592bf8be (diff) | |
download | git-93741e4a915fc33a00e6facff88cd27565d10f82.tar.gz git-93741e4a915fc33a00e6facff88cd27565d10f82.tar.xz |
daemon: --access-hook option
The --access-hook option to "git daemon" specifies an external
command to be run every time a client connects, with
- service name (e.g. "upload-pack", etc.),
- path to the repository,
- hostname (%H),
- canonical hostname (%CH),
- ip address (%IP),
- 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.
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mergetools/kompare')
0 files changed, 0 insertions, 0 deletions