t7502: clean up fake_editor tests
commita9ebc43bd07e219922d1dab17df319f1cae5d600
authorJeff King <peff@peff.net>
Thu, 26 Jul 2012 20:27:55 +0000 (26 16:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Jul 2012 21:23:35 +0000 (26 14:23 -0700)
tree3563597d9fcec455990e8e8111fe60c70b979ae3
parent18502e36061bb91131628032b5c46ea4fc8f18a3
t7502: clean up fake_editor tests

Using write_script saves us a few lines of code, and means
we consistently use $SHELL_PATH.

We can also drop the setting of the $pwd variable from
$(pwd). In the first instance, there is no reason to use it
(we can just use $(pwd) directly two lines later, since we
are interpolating the here-document). In the second
instance, it is totally pointless and probably just a
cut-and-paste from the first instance.

Finally, we can use a non-interpolating here document for
the final script, which saves some quoting.

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