t/lib-httpd: recognize */smart/* repos as smart-http
commit666aae9aed5a29019d2cd696d4258750c0dc96c7
authorJeff King <peff@peff.net>
Mon, 27 Aug 2012 13:25:21 +0000 (27 09:25 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Aug 2012 17:49:09 +0000 (27 10:49 -0700)
tree94dccbc1fb5afa8d72ca8d1c9bf3b576bd17a924
parent05b577107dda131d46f93aa9bb7817c80bc30ee9
t/lib-httpd: recognize */smart/* repos as smart-http

We do not currently test authentication for smart-http repos
at all. Part of the infrastructure to do this is recognizing
that auth/smart is indeed a smart-http repo.

The current apache config recognizes only "^/smart/*" as
smart-http. Let's instead treat anything with /smart/ in the
URL as smart-http. This is obviously a stupid thing to do
for a real production site, but for our test suite we know
that our repositories will not have this magic string in the
name.

Note that we will route /foo/smart/bar.git directly to
git-http-backend/bar.git; in other words, everything before
the "/smart/" is irrelevant to finding the repo on disk (but
may impact apache config, for example by triggering auth
checks).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-httpd/apache.conf