http-backend: Use http.getanyfile to disable dumb HTTP serving
commit5abb013b3ddfb42e5baa3c7de052af596a0ee82f
authorShawn O. Pearce <spearce@spearce.org>
Thu, 5 Nov 2009 01:16:37 +0000 (4 17:16 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Nov 2009 01:58:16 +0000 (4 17:58 -0800)
tree90102197d380c4041c38f246776576f8c821cc4f
parent7da4e2280ccaf5ecb357f7cb2b81d62f78f00f9e
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>
Documentation/git-http-backend.txt
http-backend.c