t0300: use write_script helper
authorJeff King <peff@peff.net>
Sat, 4 Feb 2012 06:30:18 +0000 (01:30 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 4 Feb 2012 07:01:55 +0000 (23:01 -0800)
commit3d9f5b674fb53cc931e0f676f1599050bd69f696
treedb851a3bfe67305db42a262d1f20756f789ac974
parent840c519d7e7ae4651a7b5a0954f7aa53eebc29b6
t0300: use write_script helper

t0300 creates some helper shell scripts, and marks them with
"!/bin/sh". Even though the scripts are fairly simple, they
can fail on broken shells (specifically, Solaris /bin/sh
will persist a temporary assignment to IFS in a "read"
command).

Rather than work around the problem for Solaris /bin/sh,
using write_script will make sure we point to a known-good
shell that the user has given us.

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