t: test http access to "half-auth" repositories
commit4c71009da60baee436358e84ff1057cd1c80e776
authorJeff King <peff@peff.net>
Mon, 27 Aug 2012 13:25:53 +0000 (27 09:25 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Aug 2012 17:49:09 +0000 (27 10:49 -0700)
treed311a3b85502a817f37a17964838b826b21daecd
parent6ac2b3aeb9900a8fb0cd3fd9be0bff00eb3a4b5b
t: test http access to "half-auth" repositories

Some sites set up http access to repositories such that
fetching is anonymous and unauthenticated, but pushing is
authenticated. While there are multiple ways to do this, the
technique advertised in the git-http-backend manpage is to
block access to locations matching "/git-receive-pack$".

Let's emulate that advice in our test setup, which makes it
clear that this advice does not actually work.

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