summaryrefslogtreecommitdiffstats
path: root/git-http-backend.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2010-01-18 01:25:50 +0000
committerJunio C Hamano <junio@kernel.org>2010-01-18 01:25:50 +0000
commit6ce6b6cb7a03d3103a4b0eb41e2ed15a80024b55 (patch)
tree3e9bd013d9057fd0551ac9d62eece9b6199dfa94 /git-http-backend.txt
parent5ca1dd1798d837bfcc50ba1cdd92484b4698dc96 (diff)
downloadgit-htmldocs-6ce6b6cb7a03d3103a4b0eb41e2ed15a80024b55.tar.gz
Autogenerated HTML docs for v1.6.6-243-gff6d2
Diffstat (limited to 'git-http-backend.txt')
-rw-r--r--git-http-backend.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/git-http-backend.txt b/git-http-backend.txt
index 67aec067c..c8fe08a0c 100644
--- a/git-http-backend.txt
+++ b/git-http-backend.txt
@@ -18,6 +18,11 @@ The program supports clients fetching using both the smart HTTP protcol
and the backwards-compatible dumb HTTP protocol, as well as clients
pushing using the smart HTTP protocol.
+It verifies that the directory has the magic file
+"git-daemon-export-ok", and it will refuse to export any git directory
+that hasn't explicitly been marked for export this way (unless the
+GIT_HTTP_EXPORT_ALL environmental variable is set).
+
By default, only the `upload-pack` service is enabled, which serves
'git-fetch-pack' and 'git-ls-remote' clients, which are invoked from
'git-fetch', 'git-pull', and 'git-clone'. If the client is authenticated,
@@ -70,6 +75,7 @@ Apache 2.x::
+
----------------------------------------------------------------
SetEnv GIT_PROJECT_ROOT /var/www/git
+SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
----------------------------------------------------------------
+
@@ -157,6 +163,10 @@ by the invoking web server, including:
* QUERY_STRING
* REQUEST_METHOD
+The GIT_HTTP_EXPORT_ALL environmental variable may be passed to
+'git-http-backend' to bypass the check for the "git-daemon-export-ok"
+file in each repository before allowing export of that repository.
+
The backend process sets GIT_COMMITTER_NAME to '$REMOTE_USER' and
GIT_COMMITTER_EMAIL to '$\{REMOTE_USER}@http.$\{REMOTE_ADDR\}',
ensuring that any reflogs created by 'git-receive-pack' contain some