t5545: factor out http repository setup
authorJeff King <peff@peff.net>
Mon, 19 Feb 2018 19:48:44 +0000 (14:48 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Feb 2018 19:27:06 +0000 (11:27 -0800)
commit6cdffd06d6ce1e997963790f9206fc981715fbbb
tree76e42e47015a528659975fc42a8dc1e200315ae2
parentffa952497288d29d94b16675c6789ef83850def3
t5545: factor out http repository setup

We repeat many lines of setup code in the two http tests,
and further tests would need to repeat it again.  Let's
factor this out into a function.

Incidentally, this also fixes an unlikely bug: if the httpd
root path contains a double-quote, our test_when_finished
would barf due to improper quoting (we escape the embedded
quotes, but not the $, meaning we expand the variable before
the eval).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5545-push-options.sh