Commit c049216f authored by Ben Walton's avatar Ben Walton Committed by Junio C Hamano

t/lib-credential: use write_script

Use write_script to create the helper "askpass" script, instead of
hand-creating it with hardcoded "#!/bin/sh" to make sure we use the
shell the user told us to use.
Signed-off-by: default avatarBen Walton <>
Signed-off-by: default avatarJunio C Hamano <>
parent 62b553cd
......@@ -278,12 +278,10 @@ helper_test_timeout() {
cat >askpass <<\EOF
write_script askpass <<\EOF
echo >&2 askpass: $*
what=$(echo $1 | cut -d" " -f1 | tr A-Z a-z | tr -cd a-z)
echo "askpass-$what"
chmod +x askpass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment