t5538: move http push tests out to t5542
commitafa53fe5d17f5ccf4bce9e3525d83696805098af
authorNick Alcock <nick.alcock@oracle.com>
Fri, 30 May 2014 17:36:21 +0000 (30 13:36 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 May 2014 18:13:45 +0000 (30 11:13 -0700)
tree50fa54699b0137f4920bf4ccdc70a3e3353bfe50
parent0232852b06cb000a3b1f5f48676c8b4d084f18ea
t5538: move http push tests out to t5542

As 0232852b, but for the push tests instead: this avoids a start_httpd
in the middle of the file, which fails under GIT_TEST_HTTPD=false.

Note that we have to munge the test in a few ways while
moving it:

  1. We drop the `test -z "$GIT_TEST_HTTPD"` check; this is
     too simplistic since 83d842d, and we should let
     lib-httpd.sh handle it.

  2. We have to port over some of the old setup from t5538.

  3. In the final test, we no longer expect the extra commit
     "1" built on top of "4". This was a side effect from an
     earlier test in t5538 which was not ported over.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5538-push-shallow.sh
t/t5542-push-http-shallow.sh [new file with mode: 0755]