t5516 (fetch-push): drop implicit arguments from helper functions
commit2e433b7895798d2936d9708da9f99bd190cd39fc
authorJeff King <peff@peff.net>
Tue, 2 Apr 2013 07:40:31 +0000 (2 13:10 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2013 17:41:42 +0000 (2 10:41 -0700)
tree389f0c179ea6005cf23798c630093cf002ec1e7c
parent2ead7a674d7f1c0b2b47bdd567755a741f86c255
t5516 (fetch-push): drop implicit arguments from helper functions

Many of the tests in t5516 look like:

  mk_empty &&
  git push testrepo ... &&
  check_push_result $commit heads/master

It's reasonably easy to see what is being tested, with the
exception that "testrepo" is a magic global name (it is
implicitly used in the helpers, but we have to name it
explicitly when calling git directly). Let's make it
explicit when call the helpers, too. This is slightly more
typing, but makes the test snippets read more naturally.

It also makes it easy for future tests to use an alternate
or multiple repositories, without a proliferation of helper
functions.

[rr: fixed sloppy quoting]

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5516-fetch-push.sh