@@ -11,25 +11,29 @@ SYNOPSIS
1111'git-daemon' [--verbose] [--syslog] [--inetd | --port=n] [--export-all]
1212 [--timeout=n] [--init-timeout=n] [--strict-paths]
1313 [--base-path=path] [--user-path | --user-path=path]
14- [--reuseaddr] [--detach] [--pid-file=file]
15- [--user=user [--group=group]] [directory...]
14+ [--enable=service] [--disable=service]
15+ [--allow-override=service] [--forbid-override=service]
16+ [--reuseaddr] [--detach] [--pid-file=file]
17+ [--user=user [--group=group]] [directory...]
1618
1719DESCRIPTION
1820-----------
1921A really simple TCP git daemon that normally listens on port "DEFAULT_GIT_PORT"
20- aka 9418. It waits for a connection, and will just execute "git-upload-pack"
21- when it gets one.
22-
23- It's careful in that there's a magic request-line that gives the command and
24- what directory to upload, and it verifies that the directory is OK.
22+ aka 9418. It waits for a connection asking for a service, and will serve
23+ that service if it is enabled.
2524
2625It verifies that the directory has the magic file "git-daemon-export-ok", and
2726it will refuse to export any git directory that hasn't explicitly been marked
2827for export this way (unless the '--export-all' parameter is specified). If you
2928pass some directory paths as 'git-daemon' arguments, you can further restrict
3029the offers to a whitelist comprising of those.
3130
32- This is ideally suited for read-only updates, i.e., pulling from git repositories.
31+ By default, only `upload-pack` service is enabled, which serves
32+ `git-fetch-pack` and `git-peek-remote` clients that are invoked
33+ from `git-fetch`, `git-ls-remote`, and `git-clone`.
34+
35+ This is ideally suited for read-only updates, i.e., pulling from
36+ git repositories.
3337
3438OPTIONS
3539-------
@@ -105,11 +109,32 @@ Giving these options is an error when used with `--inetd`; use
105109the facility of inet daemon to achieve the same before spawning
106110`git-daemon` if needed.
107111
112+ --enable-service, --disable-service::
113+ Enable/disable the service site-wide per default. Note
114+ that a service disabled site-wide can still be enabled
115+ per repository if it is marked overridable and the
116+ repository enables the service with an configuration
117+ item.
118+
119+ --allow-override, --forbid-override::
120+ Allow/forbid overriding the site-wide default with per
121+ repository configuration. By default, all the services
122+ are overridable.
123+
108124<directory>::
109125 A directory to add to the whitelist of allowed directories. Unless
110126 --strict-paths is specified this will also include subdirectories
111127 of each named directory.
112128
129+ SERVICES
130+ --------
131+
132+ upload-pack::
133+ This serves `git-fetch-pack` and `git-peek-remote`
134+ clients. It is enabled by default, but a repository can
135+ disable it by setting `daemon.uploadpack` configuration
136+ item to `false`.
137+
113138Author
114139------
115140Written by Linus Torvalds <torvalds@osdl.org>, YOSHIFUJI Hideaki
0 commit comments