summaryrefslogtreecommitdiff
path: root/t/lib-httpd
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-04-18 11:49:21 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-18 11:49:21 -0700
commit77354d8cdc6e0bf407de23d762760cccee5d757c (patch)
tree267d05719dbfa96f5eced57988802d955f94ddd2 /t/lib-httpd
parentMerge branch 'rs/empty-archive' (diff)
parenthttp-backend: respect GIT_NAMESPACE with dumb clients (diff)
downloadtgif-77354d8cdc6e0bf407de23d762760cccee5d757c.tar.xz
Merge branch 'jk/http-dumb-namespaces'
Allow smart-capable HTTP servers to be restricted via the GIT_NAMESPACE mechanism when talking with commit-walker clients (they already do so when talking with smart HTTP clients). * jk/http-dumb-namespaces: http-backend: respect GIT_NAMESPACE with dumb clients
Diffstat (limited to 't/lib-httpd')
-rw-r--r--t/lib-httpd/apache.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/lib-httpd/apache.conf b/t/lib-httpd/apache.conf
index 938b4cf803..ad8553719a 100644
--- a/t/lib-httpd/apache.conf
+++ b/t/lib-httpd/apache.conf
@@ -61,6 +61,11 @@ Alias /auth/dumb/ www/auth/dumb/
SetEnv GIT_COMMITTER_NAME "Custom User"
SetEnv GIT_COMMITTER_EMAIL custom@example.com
</LocationMatch>
+<LocationMatch /smart_namespace/>
+ SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH}
+ SetEnv GIT_HTTP_EXPORT_ALL
+ SetEnv GIT_NAMESPACE ns
+</LocationMatch>
ScriptAliasMatch /smart_*[^/]*/(.*) ${GIT_EXEC_PATH}/git-http-backend/$1
ScriptAlias /broken_smart/ broken-smart-http.sh/
<Directory ${GIT_EXEC_PATH}>