summaryrefslogtreecommitdiff
path: root/t/lib-httpd
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2013-04-10 00:55:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-10 01:06:44 (GMT)
commit6130f86deabe15c78d966b3588f47dbd653ec4fa (patch)
tree92d43a783f92f56229b2f32cc7efbfe65a1c6a3f /t/lib-httpd
parent19534ee8a7616922082a23db5f9bf0e7dc0e6fd4 (diff)
downloadgit-6130f86deabe15c78d966b3588f47dbd653ec4fa.zip
git-6130f86deabe15c78d966b3588f47dbd653ec4fa.tar.gz
git-6130f86deabe15c78d966b3588f47dbd653ec4fa.tar.bz2
http-backend: respect GIT_NAMESPACE with dumb clients
Filter the list of refs returned via the dumb HTTP protocol according to the active namespace, consistent with other clients of the upload-pack service. Signed-off-by: John Koleszar <jkoleszar@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 938b4cf..ad85537 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}>