diff options
author | Josh Triplett <josh@joshtriplett.org> | 2011-07-08 16:14:10 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-07-11 09:35:46 -0700 |
commit | d49483f0ca1be0994c4f20fe1804d36a28013676 (patch) | |
tree | 8a9638b50df38102f794c07fabc7869f40ab0114 /Documentation/git-http-backend.txt | |
parent | 6b01ecfe22f0b6ccb9665cd8d85d78a381fecffc (diff) | |
download | git-d49483f0ca1be0994c4f20fe1804d36a28013676.tar.gz git-d49483f0ca1be0994c4f20fe1804d36a28013676.tar.xz |
ref namespaces: documentation
Document the namespace mechanism in a new gitnamespaces(7) page.
Reference it from receive-pack and upload-pack.
Document the new --namespace option and GIT_NAMESPACE environment
variable in git(1), and reference gitnamespaces(7).
Add a sample Apache configuration to http-backend(1) to support
namespaced repositories, and reference gitnamespaces(7).
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-http-backend.txt')
-rw-r--r-- | Documentation/git-http-backend.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/git-http-backend.txt b/Documentation/git-http-backend.txt index 277d9e141..f4e0741c1 100644 --- a/Documentation/git-http-backend.txt +++ b/Documentation/git-http-backend.txt @@ -119,6 +119,14 @@ ScriptAliasMatch \ ScriptAlias /git/ /var/www/cgi-bin/gitweb.cgi/ ---------------------------------------------------------------- ++ +To serve multiple repositories from different linkgit:gitnamespaces[7] in a +single repository: ++ +---------------------------------------------------------------- +SetEnvIf Request_URI "^/git/([^/]*)" GIT_NAMESPACE=$1 +ScriptAliasMatch ^/git/[^/]*(.*) /usr/libexec/git-core/git-http-backend/storage.git$1 +---------------------------------------------------------------- Accelerated static Apache 2.x:: Similar to the above, but Apache can be used to return static |