aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-http-backend.txt
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2009-11-04 17:16:37 -0800
committerJunio C Hamano <gitster@pobox.com>2009-11-04 17:58:16 -0800
commit5abb013b3ddfb42e5baa3c7de052af596a0ee82f (patch)
tree90102197d380c4041c38f246776576f8c821cc4f /Documentation/git-http-backend.txt
parent7da4e2280ccaf5ecb357f7cb2b81d62f78f00f9e (diff)
downloadgit-5abb013b3ddfb42e5baa3c7de052af596a0ee82f.tar.gz
http-backend: Use http.getanyfile to disable dumb HTTP serving
Some repository owners may wish to enable smart HTTP, but disallow dumb content serving. Disallowing dumb serving might be because the owners want to rely upon reachability to control which objects clients may access from the repository, or they just want to encourage clients to use the more bandwidth efficient transport. If http.getanyfile is set to false the backend CGI will return with '403 Forbidden' when an object file is accessed by a dumb client. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-http-backend.txt')
-rw-r--r--Documentation/git-http-backend.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/git-http-backend.txt b/Documentation/git-http-backend.txt
index f17251ab9d..67aec067c8 100644
--- a/Documentation/git-http-backend.txt
+++ b/Documentation/git-http-backend.txt
@@ -29,6 +29,14 @@ SERVICES
These services can be enabled/disabled using the per-repository
configuration file:
+http.getanyfile::
+ This serves older Git clients which are unable to use the
+ upload pack service. When enabled, clients are able to read
+ any file within the repository, including objects that are
+ no longer reachable from a branch but are still present.
+ It is enabled by default, but a repository can disable it
+ by setting this configuration item to `false`.
+
http.uploadpack::
This serves 'git-fetch-pack' and 'git-ls-remote' clients.
It is enabled by default, but a repository can disable it