aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-10-08 13:05:29 -0700
committerJunio C Hamano <gitster@pobox.com>2014-10-08 13:05:29 -0700
commit9342f49738a6b539b94a344fdfd45cf29c93ffcd (patch)
tree37d646bdd7c4d7ee4db3a01336981148bd4d7717
parentb2c45f5b961b3b5d894fb723d2031e8ff41cadf7 (diff)
parentc049216fdf8cbbe93edf107800519739f4bcf56d (diff)
downloadgit-9342f49738a6b539b94a344fdfd45cf29c93ffcd.tar.gz
git-9342f49738a6b539b94a344fdfd45cf29c93ffcd.tar.xz
Merge branch 'bw/use-write-script-in-tests'
* bw/use-write-script-in-tests: t/lib-credential: use write_script
-rwxr-xr-xt/lib-credential.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/t/lib-credential.sh b/t/lib-credential.sh
index 9e7d7962b..d8e41f7dd 100755
--- a/t/lib-credential.sh
+++ b/t/lib-credential.sh
@@ -278,12 +278,10 @@ helper_test_timeout() {
'
}
-cat >askpass <<\EOF
-#!/bin/sh
+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"
EOF
-chmod +x askpass
GIT_ASKPASS="$PWD/askpass"
export GIT_ASKPASS